mscdex / express-optimized

A minimal, optimized version of Express
MIT License
13 stars 1 forks source link

.route(path).get(fn) not working where route is string #1

Closed dougwilson closed 10 years ago

dougwilson commented 10 years ago

The readme makes me think this is supported, but it seems to not function. Minimal test case:

require('express-optimized')().route('/thing').get(function(){})

Results in

Error: Cannot mount a Router in multiple places
mscdex commented 10 years ago

It's still a work in progress, especially the router mounting stuff. I added that stuff just today :-)

dougwilson commented 10 years ago

No problem :) I'm just playing with it. Just keeping ya posted on what I had discovered so far is all. There is no rush, haha. I'm excited to see where this goes :D

jonathanong commented 10 years ago

i think we could just move this into routification if you want to use this as the baseline for the router

mscdex commented 10 years ago

This should be fixed in master now.