feat: login in xui
This commit is contained in:
8
src/app/api/get_url/route.ts
Normal file
8
src/app/api/get_url/route.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { authFetch } from "../_lib/login";
|
||||
|
||||
//TODO: its just for testing. Make it normal
|
||||
export async function GET() {
|
||||
const res = await authFetch(process.env.XUI_HOST + "/panel/api/inbounds/list");
|
||||
const data = await res.json();
|
||||
return Response.json(data);
|
||||
}
|
||||
Reference in New Issue
Block a user