-
Notifications
You must be signed in to change notification settings - Fork 327
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Currently serde_dir() seems to be broken. It works if it is the only route in an app, but fails to is never routed to when it's not.
pub(crate) fn setup(app: &mut Server<StateRef>, root: PathBuf) {
app.at("/static").serve_dir(root.join("static")).unwrap();
}This works, but the following does not:
pub(crate) fn setup(app: &mut Server<StateRef>, root: PathBuf) {
app.at("/:owner/:repo").get(|_| async move { Ok("Hello world!") });
app.at("/static").serve_dir(root.join("static")).unwrap();
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working