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

Single page app #19

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Commits on Jul 1, 2019

  1. Add an option to redirect all misses to "/index.html".

    This is useful for single page apps where the routing is handled on the
    client. I'm using it to serve a webapp using `dodrio`.
    derekdreery committed Jul 1, 2019
    Configuration menu
    Copy the full SHA
    a48ed8e View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2019

  1. Add check for file extension.

    Only return the root when the requested file doesn't have an extension.
    
    If the file has an extension, it probably is a file that we should 404.
    derekdreery committed Jul 2, 2019
    Configuration menu
    Copy the full SHA
    bfd06c8 View commit details
    Browse the repository at this point in the history
  2. Revert the no extension requirement.

    Adding the extension requirement would break urls like
    
    ```
    /a/path/with/the/last/part/with.a.dot
    ```
    which might come up in user-created URLs.
    derekdreery committed Jul 2, 2019
    Configuration menu
    Copy the full SHA
    b4d63e2 View commit details
    Browse the repository at this point in the history