Skip to content
This repository has been archived by the owner on Jan 25, 2020. It is now read-only.

Special case 'index.js' to default to '/' #25

Closed
totherik opened this issue Mar 10, 2014 · 1 comment
Closed

Special case 'index.js' to default to '/' #25

totherik opened this issue Mar 10, 2014 · 1 comment

Comments

@totherik
Copy link
Member

With the new routing rules, the file name is used as part of the path. Unfortunately, the convention of using an index.js file in a directory somewhat breaks that behavior, or at least makes it unexpected. This issue proposed to special-case index.js to default to '/' instead of '/index', such that it can be used as the root for that particular path, matching the behavior in Node.js.

@totherik
Copy link
Member Author

Fixed with PR #26

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

No branches or pull requests

1 participant