budibase/packages/server/api/routes/user.js

12 lines
321 B
JavaScript
Raw Normal View History

2020-05-07 11:53:34 +02:00
const Router = require("@koa/router")
const controller = require("../controllers/user")
2020-05-07 11:53:34 +02:00
const router = Router()
2020-05-04 18:13:57 +02:00
router
.get("/api/:instanceId/users", controller.fetch)
.post("/api/:appId/:instanceId/users", controller.create)
2020-05-07 11:53:34 +02:00
.delete("/api/:instanceId/users/:userId", controller.destroy)
2020-05-07 11:53:34 +02:00
module.exports = router