nextlove 1.2.2 → 1.2.4

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,7 +15,7 @@ nextlove (generate-openapi | generate-route-types) [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: "/"
18
+ --apiPrefix <path> Prefix for API routes, default: "/api"
19
19
 
20
20
  `.trim()
21
21
  )
@@ -8,6 +8,7 @@ interface GenerateOpenAPIOpts {
8
8
  outputFile?: string;
9
9
  pathGlob?: string;
10
10
  tags?: Array<TagOption>;
11
+ apiPrefix?: string;
11
12
  mapFilePathToHTTPRoute?: (file_path: string) => string;
12
13
  }
13
14
  /**