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

10 lines
284 B
JavaScript

const Router = require("@koa/router");
const controller = require("../controllers/instance");
const router = Router();
router
.post("/api/:clientId/:applicationId/instances", controller.create)
.delete("/api/instances/:instanceId", controller.destroy);
module.exports = router;