nextlove 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin.js CHANGED
@@ -15,6 +15,7 @@ nextlove generate-openapi [options]
15
15
  --packageDir <path> Path to the package directory containing the Next.js app
16
16
  --outputFile <path> Path to the output file
17
17
  --pathGlob <glob> Glob pattern to find API route files
18
+ --apiPrefix <path> Prefix for API routes, default: "/api"
18
19
 
19
20
  `.trim())
20
21
  process.exit(0)
@@ -1,14 +1,9 @@
1
- declare const defaultMapFilePathToHTTPRoute: (file_path: string) => string;
2
- interface TagOption {
3
- name: string;
4
- description: string;
5
- doesRouteHaveTag?: (route: string) => boolean;
6
- }
1
+ declare const defaultMapFilePathToHTTPRoute: (apiPrefix?: string) => (file_path: string) => string;
7
2
  interface GenerateOpenAPIOpts {
8
3
  packageDir: string;
9
4
  outputFile?: string;
10
5
  pathGlob?: string;
11
- tags?: Array<TagOption>;
6
+ apiPrefix?: string;
12
7
  mapFilePathToHTTPRoute?: (file_path: string) => string;
13
8
  }
14
9
  /**