Skip to content

Support wildcard/fallback routes #885

Description

@enriquecaballero

I couldn't seem to find a way to implement this and it doesn't seem like there are any examples online: at the moment frontend routers such as React Router aren't compatible with Plumber as there doesn't seem to be a way to create a wildcard/fallback route they require. Usually with other api building frameworks, such as Node.js Express, I usually have a route at the end of my other routes as such:

app.use("/", (req, res) => {
  res.sendFile(path.resolve("./static", "index.html"));
});

Would be essential to support a fallback/wildcard route to ensure frontend router compatibility.

...

(If this is already implemented or can be implemented programmatically, could you please provide an example?)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions