mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-12 12:21:34 +00:00
Change: OpenApiValidator to only be created in dev
This commit is contained in:
parent
0122f88b46
commit
ac4bd0a558
1 changed files with 26 additions and 24 deletions
|
|
@ -205,6 +205,7 @@ class Server {
|
|||
})
|
||||
|
||||
// Install the OpenApiValidator middleware
|
||||
if (Logger.isDev) {
|
||||
const apiSpec = Path.join(__dirname, 'openapi.json')
|
||||
app.use(
|
||||
OpenApiValidator.middleware({
|
||||
|
|
@ -229,6 +230,7 @@ class Server {
|
|||
ignoreUndocumented: true
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
// parse cookies in requests
|
||||
app.use(cookieParser())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue