Projektstart
This commit is contained in:
13
backend/node_modules/@fastify/swagger/lib/util/resolve-swagger-function.js
generated
vendored
Normal file
13
backend/node_modules/@fastify/swagger/lib/util/resolve-swagger-function.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict'
|
||||
|
||||
function resolveSwaggerFunction (opts, cache, routes, Ref) {
|
||||
if (opts.openapi === undefined || opts.openapi === null) {
|
||||
return require('../spec/swagger')(opts, cache, routes, Ref)
|
||||
} else {
|
||||
return require('../spec/openapi')(opts, cache, routes, Ref)
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
resolveSwaggerFunction
|
||||
}
|
||||
Reference in New Issue
Block a user