Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What are the precise set of rewrite rules so that if a user specifies app.mount(<PATH>, component) they can retrieve that in the URL? #713

Closed
rook2pawn opened this issue Dec 19, 2021 · 0 comments

Comments

@rook2pawn
Copy link

rook2pawn commented Dec 19, 2021

I am working on a fork of http-server

  • want to understand the set of rewrite rules needed
  • i specify app.mount(PATH, component)
  • i want to translate a request for PATH at the FE server level into a rewrite for Choo single-page-app
  • need an example

e.g.

start with

app.mount('/user/create', createView)

and then I want to know the rewrite rules such that

/user/create -> /#user/create (for example)

#676 (comment)

@YerkoPalma : "This is expected. Any route request are handled by the server choo, as a front end framework, can't do anything about that. What you need to do is redirect any static route to the route where your choo app lives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant