Skip to content

Commit be73671

Browse files
committed
finalize routes refactoring
1 parent 2b2aa94 commit be73671

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

client/get-openapi.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,15 @@ const options = {
1717
version: "1.4.0",
1818
},
1919
}, // You can move properties from definition here if needed
20-
apis: ["../cloudflare-worker/src/routes/index.ts"], // Path to the API docs
20+
apis: [
21+
"../cloudflare-worker/src/routes/index.ts",
22+
"../cloudflare-worker/src/routes/testers/index.ts",
23+
"../cloudflare-worker/src/routes/purchases/index.ts",
24+
"../cloudflare-worker/src/routes/feedback/index.ts",
25+
"../cloudflare-worker/src/routes/refunds/index.ts",
26+
"../cloudflare-worker/src/routes/stats/index.ts",
27+
"../cloudflare-worker/src/routes/system/index.ts",
28+
], // Path to the API docs
2129
};
2230

2331
const openApi = await swaggerJsdoc(options);

cloudflare-worker/src/routes/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ const statsRoutes = (router: Router, env: Env) => {
260260

261261
/**
262262
* Setup routes
263-
* @openapi
264263
* @param router The router
265264
* @param env The environment variables
266265
*/

0 commit comments

Comments
 (0)