PhoenixKitEntities.Routes (PhoenixKitEntities v0.2.0)

Copy Markdown View Source

Route module for PhoenixKit Entities.

Provides admin LiveView routes and public form submission endpoint. Called by PhoenixKit's integration via the route_module/0 callback.

Admin routes are registered via admin_locale_routes/0 and admin_routes/0, which are called by compile_external_admin_routes in integration.ex.

Public routes are registered via generate/1, called by compile_module_public_routes in integration.ex.

Summary

Functions

Admin LiveView routes for the localized scope.

Admin LiveView routes for the non-localized scope.

Public routes for entity form submissions.

Functions

admin_locale_routes()

@spec admin_locale_routes() :: Macro.t()

Admin LiveView routes for the localized scope.

admin_routes()

@spec admin_routes() :: Macro.t()

Admin LiveView routes for the non-localized scope.

generate(url_prefix)

@spec generate(String.t()) :: Macro.t()

Public routes for entity form submissions.