1
0
Fork 0
mirror of synced 2024-08-02 20:01:43 +12:00
budibase/packages/server/middleware/routes/neo/user.js
2020-04-15 15:24:24 +01:00

11 lines
321 B
JavaScript

const Router = require("@koa/router");
const controller = require("../../controllers/user");
const router = Router();
router
.get("/api/:databaseId/users", controller.fetch)
.post("/api/:databaseId/users", controller.create)
.delete("/api/:databaseId/users/:userId", controller.destroy);
module.exports = router;