mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
feat:QQLogin Api
This commit is contained in:
7
src/webui/src/router/QQLogin.ts
Normal file
7
src/webui/src/router/QQLogin.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Router } from 'express';
|
||||
import { QQCheckLoginStatusHandler } from '../api/QQLogin';
|
||||
|
||||
const router = Router();
|
||||
|
||||
router.post('/CheckLoginStatus', QQCheckLoginStatusHandler);
|
||||
export { router as QQLoginRouter };
|
@@ -1,6 +1,7 @@
|
||||
import { Router } from "express";
|
||||
import { AuthHelper } from '../../src/helper/SignToken';
|
||||
import { NextFunction, Request, Response } from 'express';
|
||||
import { QQLoginRouter } from "./QQLogin";
|
||||
import { AuthRouter } from "./auth";
|
||||
const router = Router();
|
||||
export async function AuthApi(req: Request, res: Response, next: NextFunction) {
|
||||
@@ -45,4 +46,5 @@ router.all("/test", (req, res) => {
|
||||
});
|
||||
});
|
||||
router.use('/auth', AuthRouter);//挂载权限路由
|
||||
router.use('/QQLogin',QQLoginRouter);
|
||||
export { router as ALLRouter }
|
Reference in New Issue
Block a user