@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.d.cts CHANGED
@@ -200,7 +200,7 @@ declare function createCollectLogsMiddleware(options?: DevLogsMiddlewareOptions)
200
200
  * Creates api-routes middleware for listing application API routes
201
201
  * Used by the API Debug Panel in the platform
202
202
  *
203
- * Note: Mounted at /dev/api with route /routes for consistency with other dev middlewares
203
+ * Note: Temporarily mounted at /dev/logs for debugging. Will move to dedicated path after confirming it works.
204
204
  */
205
205
  declare function createApiRoutesMiddleware(): RouteMiddleware;
206
206
 
package/dist/index.d.ts CHANGED
@@ -200,7 +200,7 @@ declare function createCollectLogsMiddleware(options?: DevLogsMiddlewareOptions)
200
200
  * Creates api-routes middleware for listing application API routes
201
201
  * Used by the API Debug Panel in the platform
202
202
  *
203
- * Note: Mounted at /dev/api with route /routes for consistency with other dev middlewares
203
+ * Note: Temporarily mounted at /dev/logs for debugging. Will move to dedicated path after confirming it works.
204
204
  */
205
205
  declare function createApiRoutesMiddleware(): RouteMiddleware;
206
206
 
package/dist/index.js CHANGED
@@ -3552,10 +3552,10 @@ function createApiRoutesRouter() {
3552
3552
  res.header("Access-Control-Allow-Headers", "Content-Type, Accept");
3553
3553
  next();
3554
3554
  });
3555
- router.options("/routes", (_req, res) => {
3555
+ router.options("/api-list", (_req, res) => {
3556
3556
  res.status(204).end();
3557
3557
  });
3558
- router.get("/routes", (req, res) => {
3558
+ router.get("/api-list", (req, res) => {
3559
3559
  try {
3560
3560
  const routes = extractRoutes(req.app);
3561
3561
  const groups = groupRoutesByModule(routes);
@@ -3579,14 +3579,14 @@ __name(createApiRoutesRouter, "createApiRoutesRouter");
3579
3579
  var API_ROUTES_ROUTES = [
3580
3580
  {
3581
3581
  method: "GET",
3582
- path: "/routes",
3582
+ path: "/api-list",
3583
3583
  description: "Get all API routes grouped by module"
3584
3584
  }
3585
3585
  ];
3586
3586
  function createApiRoutesMiddleware() {
3587
3587
  return {
3588
3588
  name: "api-routes",
3589
- mountPath: "/dev/api",
3589
+ mountPath: "/dev/logs",
3590
3590
  routes: API_ROUTES_ROUTES,
3591
3591
  enabled: /* @__PURE__ */ __name((context) => context.isDev, "enabled"),
3592
3592
  createRouter: /* @__PURE__ */ __name((_context) => {