Migrate project from typing_practiceweb

This commit is contained in:
2026-05-14 16:04:14 +08:00
parent dbc5425706
commit 0e87d5546d
225 changed files with 92811 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { Router } from 'express';
import { OAuth2Controller } from './oauth2.controller';
const router = Router();
const oauth2Controller = new OAuth2Controller();
// OAuth2 路由定义
router.get('/authorize', oauth2Controller.authorize);
router.post('/token', oauth2Controller.token);
router.get('/userinfo', oauth2Controller.userinfo);
router.get('/moodle-sesskey', (req, res, next) => {
console.log('OAuth2 route: /moodle-sesskey accessed');
oauth2Controller.getMoodleSesskey(req, res);
});
export default router;