Function generateServicesSummary

  • Generates a summary of available services (tables) with their base endpoints. Groups routes by table name and returns one representative endpoint per table. Excludes custom endpoints.

    Parameters

    • routesObj: IRoutesObject

      The routes object containing route definitions.

    • OptionalcustomEndpointPaths: Set<string>

      Optional set of custom endpoint paths to exclude.

    Returns Record<string, string>

    An object mapping table names (in kebab-case) to their base endpoints.

    // Returns:
    // {
    // "users": "GET /users",
    // "join-users": "GET /join-users",
    // "other-table": "GET /other-table"
    // }