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

Add fallbackFile option to response for unhandled requests #146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ngs
Copy link

@ngs ngs commented Aug 12, 2015

No description provided.

ngs added a commit to ngs-archives/http-server that referenced this pull request Aug 12, 2015
@jfhbrook
Copy link
Owner

What are you using this for?

@ngs
Copy link
Author

ngs commented Aug 21, 2015

I use this for HTML 5 Histroy router like React or AngularJS.

It needs to response specific HTML for any routings.

ngs added a commit to ngs-archives/http-server that referenced this pull request Oct 16, 2015
@ngs
Copy link
Author

ngs commented Oct 16, 2015

Rebased my branch. How do you like this changes?

@slorber
Copy link

slorber commented Nov 10, 2016

I need this too!

@mk-pmb
Copy link
Contributor

mk-pmb commented Oct 18, 2017

Another easy way to make an SPA is to just cheat the input URL.

@ngs: Would you mind adding "(SPA default page)" to the topic to help future people find it via search?

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

Successfully merging this pull request may close these issues.

None yet

4 participants