2020-04-20 17:17:11 +02:00
|
|
|
const Router = require("@koa/router");
|
2020-05-04 18:13:57 +02:00
|
|
|
const controller = require("../controllers/instance");
|
2020-04-20 17:17:11 +02:00
|
|
|
|
|
|
|
const router = Router();
|
|
|
|
|
|
|
|
router
|
|
|
|
.post("/api/:clientId/:applicationId/instances", controller.create)
|
|
|
|
.delete("/api/instances/:instanceId", controller.destroy);
|
|
|
|
|
|
|
|
module.exports = router;
|