Skip to main content

scope_at

Function scope_at 

Source
pub fn scope_at(mount: &'static str) -> Scope
Expand description

Build the adminx Actix scope at a custom mount prefix. The prefix is both the scope path and what in-page links, redirects, and form actions are built from, so one argument keeps them in sync:

ⓘ
App::new().service(adminx_actix::scope_at("/admin"));

The prefix must be a &'static str (it is captured by the route handlers).