PhoenixKitEcommerce.Web.Routes (PhoenixKitEcommerce v0.1.5)

Copy Markdown View Source

Shop module routes.

Provides route definitions for e-commerce functionality including admin, public catalog, and user dashboard routes.

Summary

Functions

Returns quoted live route declarations for shop admin pages (localized).

Returns quoted live route declarations for shop admin pages (non-localized). Called via safe_route_call from PhoenixKitWeb.Integration.

Returns quoted code for shop public routes.

Returns quoted live route declarations for localized shop public pages.

Returns quoted live route declarations for non-localized shop public pages.

Functions

admin_locale_routes()

Returns quoted live route declarations for shop admin pages (localized).

admin_routes()

Returns quoted live route declarations for shop admin pages (non-localized). Called via safe_route_call from PhoenixKitWeb.Integration.

generate_public_routes(url_prefix)

Returns quoted code for shop public routes.

Shop public routes are now included in the unified :phoenix_kit_public live_session via phoenix_kit_public_routes/1 in PhoenixKitWeb.Integration. This function returns an empty block for backward compatibility.

public_live_locale_routes()

Returns quoted live route declarations for localized shop public pages.

These declarations are included directly inside the unified :phoenix_kit_public_locale live_session defined in phoenix_kit_public_routes/1 in PhoenixKitWeb.Integration. Routes use full module names (alias: false) and localized route aliases.

public_live_routes()

Returns quoted live route declarations for non-localized shop public pages.

These declarations are included directly inside the unified :phoenix_kit_public live_session defined in phoenix_kit_public_routes/1 in PhoenixKitWeb.Integration. Routes use full module names (alias: false) and non-localized route aliases.