feat: login in xui

This commit is contained in:
2025-06-07 22:42:48 +03:00
parent b3bb15dff7
commit 5948b9d739
5 changed files with 115 additions and 1 deletions

View 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);
}