lunatic-solutions / submillisecond

A lunatic web framework
MIT License
912 stars 18 forks source link

Static router doesn't work with `"/"` path #87

Open tqwewe opened 2 years ago

tqwewe commented 2 years ago

The following router shows 404 with /index.html, but instead only works with //index.html (with double / prefix).

router! {
    "/" => static_router!("./static")
}

This should be fixed so /index.html matches directly.