PhoenixKitReferrals.Paths (PhoenixKitReferrals v0.1.0)

Copy Markdown View Source

Centralized path helpers for the Referrals module.

Every path goes through PhoenixKit.Utils.Routes.path/1, which applies the parent app's configurable URL prefix (e.g. /phoenix_kit) and locale prefix (e.g. /ja) automatically.

Use these helpers in templates and push_navigate/2 calls instead of hardcoding URLs. If the admin mount point ever changes, this is the single file to update and every navigation follows.

Summary

Functions

Edit form for the referral addressed by code_uuid.

Referral list / management page (under admin Users).

New-referral form.

Referrals settings page (under admin Settings).

Functions

edit(code_uuid)

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

Edit form for the referral addressed by code_uuid.

index()

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

Referral list / management page (under admin Users).

new()

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

New-referral form.

settings()

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

Referrals settings page (under admin Settings).