2020-04-07 16:12:08 +02:00
|
|
|
const Router = require("@koa/router");
|
|
|
|
const controller = require("../../controllers/schema");
|
|
|
|
|
|
|
|
const router = Router();
|
|
|
|
|
2020-04-07 18:25:09 +02:00
|
|
|
router
|
|
|
|
.get("/api/schemas/:appId", controller.fetch)
|
|
|
|
.post("/api/schemas/:appId", controller.save)
|
|
|
|
.delete("/api/schemas/:appId", controller.delete)
|