Skip to main content

router

Function router 

Source
pub fn router(dir: &Path) -> Router
Expand description

Serves the client, falling back to index.html so client-side routes and a hard refresh both work. API routes are matched first by the caller.