Skip to main content

auth

Function auth 

Source
pub fn auth(cx: &Cx, page: AuthPage) -> Option<String>
Expand description

The URL of page in the request’s panel, such as /admin/profile; None when the panel’s Auth does not serve it, as the other helpers answer for a resource the panel does not register.

A settings page an Area holds is served under that area, which this answers.

let profile = url::auth(cx, AuthPage::Profile); // Some("/admin/profile")