2020-05-07 11:53:34 +02:00
|
|
|
const Router = require("@koa/router")
|
|
|
|
const controller = require("../controllers/client")
|
2020-04-08 12:18:30 +02:00
|
|
|
|
2020-05-07 11:53:34 +02:00
|
|
|
const router = Router()
|
2020-04-08 12:18:30 +02:00
|
|
|
|
|
|
|
router
|
2020-04-28 15:39:35 +02:00
|
|
|
.get("/api/client/id", controller.getClientId)
|
2020-04-08 12:18:30 +02:00
|
|
|
.post("/api/clients", controller.create)
|
2020-05-07 11:53:34 +02:00
|
|
|
.delete("/api/clients/:clientId", controller.destroy)
|
2020-04-08 12:18:30 +02:00
|
|
|
|
2020-05-07 11:53:34 +02:00
|
|
|
module.exports = router
|