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

should nesting hash routers work? #1

Closed
nrw opened this issue Jan 5, 2015 · 1 comment
Closed

should nesting hash routers work? #1

nrw opened this issue Jan 5, 2015 · 1 comment

Comments

@nrw
Copy link

nrw commented Jan 5, 2015

do we want this to work?

var Hash = require('http-hash')

var router = Hash()
var users = Hash()

users.set('/', function (req, res) {
  res.end('users root')
})

router.set('/users/*', users)

console.log(router.get('/users')) // gets 'users root' function in handler
@nrw
Copy link
Author

nrw commented Jan 6, 2015

by design, this doesn't work as discussed here: Matt-Esch/http-hash-router#4

@nrw nrw closed this as completed Jan 6, 2015
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