bxo 0.0.5-dev.69 → 0.0.5-dev.70

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  ".": "./src/index.ts",
6
6
  "./plugins": "./plugins/index.ts"
7
7
  },
8
- "version": "0.0.5-dev.69",
8
+ "version": "0.0.5-dev.70",
9
9
  "type": "module",
10
10
  "devDependencies": {
11
11
  "@types/bun": "latest"
@@ -15,7 +15,7 @@ const createOpenApiPaths = (app: BXO, config?: OpenApiPluginConfig): ZodOpenApiP
15
15
  const routes = app.getRoutes()
16
16
  let paths: ZodOpenApiPathsObject = {}
17
17
  for (const route of routes) {
18
- const openapiPath = "/" + route.path.replace(/:(\w+)/g, "{$1}").replace(/\*/g, "*").replace(/\//g, "")
18
+ const openapiPath = "/" + route.path.replace(/:(\w+)/g, "{$1}").replace(/\*/g, "*").replace("/", "")
19
19
  const method = route.method.toLowerCase()
20
20
  if (method === "default") {
21
21
  continue