PhoenixKitHelloWorld.Paths (PhoenixKitHelloWorld v0.1.6)

Copy Markdown View Source

Centralized path helpers for the Hello World module.

All paths go through PhoenixKit.Utils.Routes.path/1 for prefix/locale handling.

Why centralize paths?

Never hardcode URLs like "/admin/hello-world" in your LiveViews. If the parent app changes its PhoenixKit URL prefix (e.g. /admin/backend), your module breaks. Using Routes.path/1 through a central Paths module means one file to update and every navigation automatically follows.

Summary

Functions

PhoenixKit core component showcase.

Activity events feed filtered to this module.

Main Hello World landing page with module info and the demo action.

Functions

components()

@spec components() :: String.t()

PhoenixKit core component showcase.

events()

@spec events() :: String.t()

Activity events feed filtered to this module.

index()

@spec index() :: String.t()

Main Hello World landing page with module info and the demo action.