@lark-apaas/devtool-kits 0.1.0-alpha.0 → 0.1.0-alpha.1
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/README.md +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28649,7 +28649,7 @@ __name(createOpenapiHandler, "createOpenapiHandler");
|
|
|
28649
28649
|
function createOpenapiRouter(openapiFilePath, enableEnhancement, context) {
|
|
28650
28650
|
const router = import_express.default.Router();
|
|
28651
28651
|
const handler = createOpenapiHandler(openapiFilePath, enableEnhancement);
|
|
28652
|
-
router.get("/", (req, res) => handler(req, res, context));
|
|
28652
|
+
router.get("/openapi.json", (req, res) => handler(req, res, context));
|
|
28653
28653
|
return router;
|
|
28654
28654
|
}
|
|
28655
28655
|
__name(createOpenapiRouter, "createOpenapiRouter");
|
|
@@ -28658,7 +28658,7 @@ __name(createOpenapiRouter, "createOpenapiRouter");
|
|
|
28658
28658
|
var OPENAPI_ROUTES = [
|
|
28659
28659
|
{
|
|
28660
28660
|
method: "GET",
|
|
28661
|
-
path: "/",
|
|
28661
|
+
path: "/openapi.json",
|
|
28662
28662
|
description: "Serve enhanced OpenAPI specification with source code references"
|
|
28663
28663
|
}
|
|
28664
28664
|
];
|
|
@@ -28666,7 +28666,7 @@ function createOpenapiMiddleware(options) {
|
|
|
28666
28666
|
const { openapiFilePath, enableEnhancement = true } = options;
|
|
28667
28667
|
return {
|
|
28668
28668
|
name: "openapi",
|
|
28669
|
-
mountPath: "/
|
|
28669
|
+
mountPath: "/dev",
|
|
28670
28670
|
routes: OPENAPI_ROUTES,
|
|
28671
28671
|
enabled: /* @__PURE__ */ __name((context) => context.isDev, "enabled"),
|
|
28672
28672
|
createRouter: /* @__PURE__ */ __name((context) => {
|