Skip to content

* route priority #593

@spacekookie

Description

@spacekookie

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();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions