test
This commit is contained in:
17
js-demo/server/routes/index.ts
Normal file
17
js-demo/server/routes/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import Router from "koa-router"
|
||||
import GetAuth from "./getAuth"
|
||||
import GameStart from "./gameStart"
|
||||
import GameEnd from "./gameEnd"
|
||||
import GameHeartBeat from "./gameHeartBeat"
|
||||
import GameBatchHeartBeat from "./gameBatchHeartBeat"
|
||||
|
||||
const router = new Router()
|
||||
|
||||
// 开启路由
|
||||
router.post("/getAuth", GetAuth)
|
||||
router.post("/gameStart", GameStart)
|
||||
router.post("/gameEnd", GameEnd)
|
||||
router.post("/gameHeartBeat", GameHeartBeat)
|
||||
router.post("/gameBatchHeartBeat", GameBatchHeartBeat)
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user