2020-04-08 12:18:30 +02:00
|
|
|
const Router = require("@koa/router");
|
2020-05-04 18:13:57 +02:00
|
|
|
const controller = require("../controllers/client");
|
2020-04-08 12:18:30 +02:00
|
|
|
|
|
|
|
const router = Router();
|
|
|
|
|
|
|
|
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)
|
|
|
|
.delete("/api/clients/:clientId", controller.destroy);
|
|
|
|
|
|
|
|
module.exports = router;
|