feat:QQLogin Api

This commit is contained in:
手瓜一十雪
2024-05-07 22:35:15 +08:00
parent 1c7d9c3513
commit dedd0be352
3 changed files with 34 additions and 7 deletions

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

View File

@@ -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 }