zudoku 0.23.8 → 0.23.9
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/dist/lib/plugins/openapi/index.js +6 -5
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/lib/{OperationList-Cdbaz-V3.js → OperationList-ChQR0IcQ.js} +2 -2
- package/lib/{OperationList-Cdbaz-V3.js.map → OperationList-ChQR0IcQ.js.map} +1 -1
- package/lib/{index-Bfm--TJU.js → index-DtJxZrbj.js} +124 -126
- package/lib/{index-Bfm--TJU.js.map → index-DtJxZrbj.js.map} +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +1 -1
- package/src/lib/plugins/openapi/index.tsx +7 -5
package/package.json
CHANGED
|
@@ -166,9 +166,11 @@ export const openApiPlugin = (config: OpenApiPluginOptions): ZudokuPlugin => {
|
|
|
166
166
|
return [];
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
|
-
getRoutes: () =>
|
|
170
|
-
|
|
171
|
-
|
|
169
|
+
getRoutes: () => {
|
|
170
|
+
const versionsInPath = [null, ...versions];
|
|
171
|
+
|
|
172
|
+
return versionsInPath.map((version) => ({
|
|
173
|
+
path: basePath + (version ? `/${version}` : ""),
|
|
172
174
|
async lazy() {
|
|
173
175
|
const { OpenApiRoute } = await import("./Route.js");
|
|
174
176
|
return {
|
|
@@ -191,7 +193,7 @@ export const openApiPlugin = (config: OpenApiPluginOptions): ZudokuPlugin => {
|
|
|
191
193
|
},
|
|
192
194
|
},
|
|
193
195
|
],
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
+
}));
|
|
197
|
+
},
|
|
196
198
|
};
|
|
197
199
|
};
|