feat: 新增 nodejs 实验 8

This commit is contained in:
2025-12-09 11:08:15 +08:00
parent 11b4998dca
commit ad1a6a22e9
8 changed files with 535 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
const Router = require("koa-router");
const db = require("../db")
const { handlerLogin, handlerRegister } = require("./index");
const router = new Router();
router.post("/register", handlerRegister);
router.post("/login", handlerLogin);
// router.get("/user/:id", handlerGetUser)
module.exports = router;