Skip to content

Commit

Permalink
Add overview API, #925
Browse files Browse the repository at this point in the history
  • Loading branch information
wliyongfeng committed Nov 6, 2024
1 parent bee1662 commit 456a46f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions backend/packages/server/src/features/overview/routes.js
Original file line number Diff line number Diff line change
@@ -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;
1 change: 1 addition & 0 deletions backend/packages/server/src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")];
Expand Down

0 comments on commit 456a46f

Please sign in to comment.