2020-04-07 18:25:09 +02:00
|
|
|
const Router = require("@koa/router");
|
|
|
|
const controller = require("../../controllers/user");
|
|
|
|
|
|
|
|
const router = Router();
|
|
|
|
|
|
|
|
router
|
2020-04-20 17:17:11 +02:00
|
|
|
.get("/api/:instanceId/users", controller.fetch)
|
|
|
|
.post("/api/:instanceId/users", controller.create)
|
|
|
|
.delete("/api/:instanceId/users/:userId", controller.destroy);
|
2020-04-07 18:25:09 +02:00
|
|
|
|
|
|
|
module.exports = router;
|