Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@moonlight-protocol/provider-platform",
"version": "0.4.0",
"version": "0.4.1",
"license": "MIT",
"exports": "./src/main.ts",
"tasks": {
Expand Down
14 changes: 6 additions & 8 deletions src/http/v1/dashboard/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ const dashboardRouter = new Router();
dashboardRouter.post("/dashboard/auth/challenge", lowRateLimitMiddleware, postChallengeHandler);
dashboardRouter.post("/dashboard/auth/verify", lowRateLimitMiddleware, postVerifyHandler);

// --- Protected endpoints ---
dashboardRouter.use("/dashboard", jwtMiddleware);

dashboardRouter.get("/dashboard/channels", getChannelsHandler);
dashboardRouter.get("/dashboard/mempool", getMempoolHandler);
dashboardRouter.get("/dashboard/operations", getOperationsHandler);
dashboardRouter.get("/dashboard/treasury", getTreasuryHandler);
dashboardRouter.get("/dashboard/audit-export", getAuditExportHandler);
// --- Protected endpoints (JWT checked inline per-route) ---
dashboardRouter.get("/dashboard/channels", jwtMiddleware, getChannelsHandler);
dashboardRouter.get("/dashboard/mempool", jwtMiddleware, getMempoolHandler);
dashboardRouter.get("/dashboard/operations", jwtMiddleware, getOperationsHandler);
dashboardRouter.get("/dashboard/treasury", jwtMiddleware, getTreasuryHandler);
dashboardRouter.get("/dashboard/audit-export", jwtMiddleware, getAuditExportHandler);

export default dashboardRouter;
2 changes: 1 addition & 1 deletion src/http/v1/v1.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import dashboardRouter from "@/http/v1/dashboard/routes.ts";
const apiRouter = new Router();

apiRouter.use("/api/v1", stellarRouter.routes(), stellarRouter.allowedMethods());
apiRouter.use("/api/v1", bundleRouter.routes(), bundleRouter.allowedMethods());
apiRouter.use("/api/v1", dashboardRouter.routes(), dashboardRouter.allowedMethods());
apiRouter.use("/api/v1", bundleRouter.routes(), bundleRouter.allowedMethods());

export default apiRouter;
Loading