Skip to content

Commit dbfccf8

Browse files
committed
backend: add possibility to download swagger.json
1 parent a91991e commit dbfccf8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/server.ts

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ app.use(express.json());
1010
app.use(cors({ origin: "*" }));
1111

1212
app.use("/api-docs", swaggerUi.serve, swaggerUi.setup(swaggerDocument));
13+
app.get("/api-spec", (req, res) => res.download("./build/swagger.json"));
1314
app.get("/api", (req, res) => res.redirect("/api-docs"));
1415

1516
RegisterRoutes(app);

0 commit comments

Comments
 (0)