Replies: 1 comment
-
Could you provide the reproduce repository? You would see that we could define the path for api routes. const spec: Record<string, any> = createSwaggerSpec({
apiFolder: 'pages/api' // or 'src/pages/api', ==> You could change the folder here
definition: {
openapi: '3.0.0',
info: {
title: 'Next Swagger API Example',
version: '1.0',
},
},
}); |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Bug descrition
#When default root path is set to src
Swagger does not load the api routes even when annotated but when i move my code out of src directory then swagger does display
Reproduction
use src directory as main file directory for the apis
System Info
Used Package Manager
npm
Validations
Beta Was this translation helpful? Give feedback.
All reactions