@lark-apaas/devtool-kits 1.2.17-alpha.10 → 1.2.17-alpha.11
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/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3594,10 +3594,10 @@ function createApiRoutesRouter() {
|
|
|
3594
3594
|
res.header("Access-Control-Allow-Headers", "Content-Type, Accept");
|
|
3595
3595
|
next();
|
|
3596
3596
|
});
|
|
3597
|
-
router.options("/
|
|
3597
|
+
router.options("/api-list", (_req, res) => {
|
|
3598
3598
|
res.status(204).end();
|
|
3599
3599
|
});
|
|
3600
|
-
router.get("/
|
|
3600
|
+
router.get("/api-list", (req, res) => {
|
|
3601
3601
|
try {
|
|
3602
3602
|
const routes = extractRoutes(req.app);
|
|
3603
3603
|
const groups = groupRoutesByModule(routes);
|
|
@@ -3621,14 +3621,14 @@ __name(createApiRoutesRouter, "createApiRoutesRouter");
|
|
|
3621
3621
|
var API_ROUTES_ROUTES = [
|
|
3622
3622
|
{
|
|
3623
3623
|
method: "GET",
|
|
3624
|
-
path: "/
|
|
3624
|
+
path: "/api-list",
|
|
3625
3625
|
description: "Get all API routes grouped by module"
|
|
3626
3626
|
}
|
|
3627
3627
|
];
|
|
3628
3628
|
function createApiRoutesMiddleware() {
|
|
3629
3629
|
return {
|
|
3630
3630
|
name: "api-routes",
|
|
3631
|
-
mountPath: "/dev/
|
|
3631
|
+
mountPath: "/dev/logs",
|
|
3632
3632
|
routes: API_ROUTES_ROUTES,
|
|
3633
3633
|
enabled: /* @__PURE__ */ __name((context) => context.isDev, "enabled"),
|
|
3634
3634
|
createRouter: /* @__PURE__ */ __name((_context) => {
|