2020-05-07 11:53:34 +02:00
|
|
|
const Router = require("@koa/router")
|
|
|
|
const controller = require("../controllers/application")
|
2020-04-07 18:25:09 +02:00
|
|
|
|
2020-05-07 11:53:34 +02:00
|
|
|
const router = Router()
|
2020-04-07 18:25:09 +02:00
|
|
|
|
2020-04-08 12:18:30 +02:00
|
|
|
router
|
|
|
|
.get("/api/:clientId/applications", controller.fetch)
|
2020-04-20 17:17:11 +02:00
|
|
|
.get("/api/:clientId/:applicationId/appPackage", controller.fetchAppPackage)
|
2020-05-07 11:53:34 +02:00
|
|
|
.post("/api/:clientId/applications", controller.create)
|
2020-04-07 18:25:09 +02:00
|
|
|
|
2020-05-07 11:53:34 +02:00
|
|
|
module.exports = router
|