parent
51ff9defc5
commit
9b2ea8c23c
|
@ -17,12 +17,22 @@ export default async (app: Application) => {
|
|||
schemas,
|
||||
},
|
||||
info: {
|
||||
description: "LfK! Backend API`",
|
||||
description: "The the backend API for the LfK! runner system.",
|
||||
title: "LfK! Backend API",
|
||||
version: "1.0.0",
|
||||
},
|
||||
}
|
||||
);
|
||||
app.use("/docs", swaggerUiExpress.serve, swaggerUiExpress.setup(spec));
|
||||
const options = {
|
||||
explorer: true,
|
||||
};
|
||||
app.use(
|
||||
"/docs",
|
||||
swaggerUiExpress.serve,
|
||||
swaggerUiExpress.setup(spec, options)
|
||||
);
|
||||
app.get(["/openapi.json", "/swagger.json"], (req, res) => {
|
||||
res.json(spec);
|
||||
});
|
||||
return app;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue