Skip to content

Commit

Permalink
fix: change folder references in next-swagger-doc configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
philprime committed Sep 8, 2024
1 parent 84680fa commit 17aa02c
Show file tree
Hide file tree
Showing 5 changed files with 980 additions and 15 deletions.
4 changes: 2 additions & 2 deletions next-swagger-doc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"apiFolder": "pages/api",
"apiFolder": "src/pages/api",
"schemaFolders": [
"models"
"src/models"
],
"definition": {
"openapi": "3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "next dev",
"build": "yarn generate:docs && next build",
"format": "prettier --write \"**/*.ts\"",
"generate:docs": "next-swagger-doc-cli next-swagger-doc.json --output ./public/swagger.json",
"generate:docs": "next-swagger-doc-cli next-swagger-doc.json --output ./public/openapi.json",
"start": "next start",
"lint": "next lint",
"test": "jest",
Expand Down
Loading

0 comments on commit 17aa02c

Please sign in to comment.