feat(auth): 添加 3xui 登录功能

- 新增 3xuiLogin.js 文件实现登录功能
- 添加 getCookie 函数用于获取登录 Cookie
- 集成 HTTP 实例和表单数据处理
This commit is contained in:
aixianling
2025-02-26 15:38:31 +08:00
parent b958beaf2f
commit f4057ae956
2 changed files with 19 additions and 1 deletions

1
app.js
View File

@@ -53,7 +53,6 @@ const loadAPIRoutes = (baseDir = 'api', baseRoute = '/api') => {
// 初始化扫描
scanDirectory(path.join(__dirname, baseDir), baseRoute);
};
// 公开路由
router.get("/public", (ctx) => {
ctx.body = "Public content";