@@ -45,16 +45,6 @@ export default async (app: Application) => {
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
// //Options for swaggerUiExpress
|
||||
// const options = {
|
||||
// explorer: true,
|
||||
// };
|
||||
// app.use(
|
||||
// "/api/docs/swagger",
|
||||
// swaggerUiExpress.serve,
|
||||
// swaggerUiExpress.setup(spec, options)
|
||||
// );
|
||||
app.get(["/api/docs/openapi.json", "/api/docs/swagger.json"], (req, res) => {
|
||||
res.json(spec);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user