feat:QQLogin Api
This commit is contained in:
1 parent
1c7d9c3513
commit
dedd0be352
3 files changed
+34
-7
No files matched your search
@@ -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