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