budibase/packages/server/middleware/routes/neo/user.js

11 lines
321 B
JavaScript
Raw Normal View History

2020-04-07 18:25:09 +02:00
const Router = require("@koa/router");
const controller = require("../../controllers/user");
const router = Router();
router
.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;