budibase/packages/server/src/api/routes/application.js

12 lines
316 B
JavaScript
Raw Normal View History

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
router
2020-05-14 16:12:30 +02:00
.get("/api/applications", controller.fetch)
.get("/api/:applicationId/appPackage", controller.fetchAppPackage)
.post("/api/applications", controller.create)
2020-04-07 18:25:09 +02:00
2020-05-07 11:53:34 +02:00
module.exports = router