pub fn router(dir: &Path) -> Router
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.
index.html