Skip to main content

static_router

Function static_router 

Source
pub fn static_router(files: StaticFiles) -> Router
Expand description

Build a router that serves every path under the given prefix from files.root. Mount with .nest("/static", static_router(...)).