PhoenixKitWeb.Routes.ShopRoutes (phoenix_kit v1.7.71)

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 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

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.