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

11 lines
350 B
JavaScript
Raw Normal View History

2020-04-07 18:25:09 +02:00
const Router = require("@koa/router");
2020-05-04 18:13:57 +02:00
const controller = require("../controllers/application");
2020-04-07 18:25:09 +02:00
const router = Router();
router
.get("/api/:clientId/applications", controller.fetch)
.get("/api/:clientId/:applicationId/appPackage", controller.fetchAppPackage)
.post("/api/:clientId/applications", controller.create);
2020-04-07 18:25:09 +02:00
module.exports = router;