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

12 lines
296 B
JavaScript
Raw Normal View History

2020-05-07 11:53:34 +02:00
const Router = require("@koa/router")
const controller = require("../controllers/client")
2020-05-07 11:53:34 +02:00
const router = Router()
router
.get("/api/client/id", controller.getClientId)
.post("/api/clients", controller.create)
2020-05-07 11:53:34 +02:00
.delete("/api/clients/:clientId", controller.destroy)
2020-05-07 11:53:34 +02:00
module.exports = router