diff --git a/backend/packages/server/src/features/overview/routes.js b/backend/packages/server/src/features/overview/routes.js new file mode 100644 index 00000000..f46e9759 --- /dev/null +++ b/backend/packages/server/src/features/overview/routes.js @@ -0,0 +1,8 @@ +const Router = require("koa-router"); +const { getOverview } = require("../../jobs/overview"); + +const router = new Router(); + +router.get("/overview", async (ctx) => (ctx.body = getOverview())); + +module.exports = router; diff --git a/backend/packages/server/src/routes.js b/backend/packages/server/src/routes.js index bed0641b..f7c4465b 100644 --- a/backend/packages/server/src/routes.js +++ b/backend/packages/server/src/routes.js @@ -14,6 +14,7 @@ const routes = [ require("./features/spec/routes"), require("./features/runtime/routes"), require("./features/status/routes"), + require("./features/overview/routes"), ]; const assetsRoutes = [require("./features/assets/routes")];