From c6e56bae5a9b7bdc841fab33e75dac894d901678 Mon Sep 17 00:00:00 2001 From: luoyonghuang <2308014474@qq.com> Date: Wed, 9 Oct 2024 11:19:10 +0800 Subject: [PATCH] Delete 'router.js' --- router.js | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 router.js diff --git a/router.js b/router.js deleted file mode 100644 index 7ee77e8..0000000 --- a/router.js +++ /dev/null @@ -1,24 +0,0 @@ -const express = require('express'); -const router = express.Router(); -const multer = require('multer'); -const randomSelect = require('./services/randomSelect'); -const ranking = require('./services/ranking'); -const classManager = require('./services/classManager'); -const scoreManager = require('./services/scoreManager'); - -// 文件上传配置 -const upload = multer({ dest: 'uploads/' }); - -// 路由 - 添加班级 -router.post('/upload', upload.single('file'), classManager.addClass); - -// 路由 - 随机点名 -router.get('/random-call', randomSelect.selectStudent); - -// 路由 - 获取排名 -router.get('/ranking', ranking.getRanking); - -// 路由 - 更新分数 -router.post('/update-score', scoreManager.updateScore); - -module.exports = router;