PhoenixKitBookings.Web.Routes (PhoenixKitBookings v0.1.1)

Copy Markdown View Source

Public route definitions for the Bookings module.

Admin pages are auto-generated from PhoenixKitBookings.admin_tabs/0; only the public booking surface lives here. All paths are specific (no catch-alls), so they belong in generate/1 — placed early in the host router, they can never shadow /admin/*.

The public LiveViews run in their own live_session with core's permissive :phoenix_kit_mount_current_scope hook — a logged-in visitor's scope is available (prefill, login_required services), an anonymous visitor gets a guest scope.

Summary

Functions

generate(url_prefix)

public_routes(url_prefix)