You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
325 B
12 lines
325 B
const Router = require("koa-router");
|
|
|
|
const router = new Router({ prefix: "/control" });
|
|
|
|
const { auth } = require("../middleware/auth.middleware");
|
|
const { detail, change } = require("../controller/control.controller");
|
|
|
|
router.get("/detail", auth, detail);
|
|
|
|
router.post("/change", auth, change);
|
|
|
|
module.exports = router;
|