We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8241c33 + 6a89c69 commit 29a84e5Copy full SHA for 29a84e5
src/index.ts
@@ -44,6 +44,11 @@ app.use(yoga.graphqlEndpoint, yoga);
44
45
app.use("/spec", swaggerUi.serve, swaggerUi.setup(swaggerJson));
46
47
+app.get("/swagger.json", (req, res) => {
48
+ res.setHeader("Content-Type", "application/json");
49
+ res.send(swaggerJson);
50
+});
51
+
52
RegisterRoutes(app);
53
54
// The error handler must be registered before any other error middleware and after all controllers
0 commit comments