PhoenixKitReferrals.Paths (PhoenixKitReferrals v0.4.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 codes list / management page.

New-referral form.

Referral program overview / stats dashboard.

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 codes list / management page.

new()

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

New-referral form.

overview()

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

Referral program overview / stats dashboard.

settings()

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

Referrals settings page (under admin Settings).