iron / iron/staticfile

How serve 404 into static file for example index.html or 404.html

Open
#62 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
66
Forks
57
PR merge metrics
No merged PRs in 30d

Description

mount.mount("/", staticfile::Static::new(Path::new("../assets/index.html")));

I hope it serve the static file when the Path is file. (fn Path::is_file(&self) -> bool)
/ => index.html
/404 => index.html

more :
https://github.com/rackt/react-router/blob/latest/docs/guides/basics/Histories.md#configuring-your-server

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.