-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
"Each layer must have a route and a handle function" -- what is the "route" function? #49
Comments
All I see at /**
Ok, so "route" is a string, not a function. (That ambiguity in the error message should be eliminated.) But anyway, what does this mean? "Route" as in the "router" middleware? I can't see how that has anything to do with it, and I can't think of another relevant type of "route" this could be. |
shit, year |
... ok. I don't think I understand. Let's take the examples at http://howtonode.org/connect-it . Neither the "from scratch" app, nor the "robust using built-in" app, work: when I run
I get exactly the same if I set exports.route in
So to keep this simple, how should the tutorial at the above URL be changed for it to now work? |
that tutorial is pretty old now.. you can basically use the example above, with staticProvider instead of "static" (which I will fix), and run |
Perhaps I should update the article. Updating... |
Many examples with latest connect and express don't work. "Each layer must have a route and a handle function" in all of them. Bug? |
its because I made a change to allow |
if it's for me it's ok... given that you can pass those into express.createServer() without a path ... so no biggie. thanks |
my and guillermo had a big talk about dependencies. its a stupid issue with node stuff right now. git IS a package manager essentially, we talked about vendorizing connect in express, but it leads to other problems so I dont have a good answer at this moment but the preferred install method would probably be |
I'm confused as to what the "route" function is in a layer. I don't see it documented; what is its signature and what is it meant to do?
(Also, is the documentation at http://extjs.github.com/Connect/ tested? I see the following in the "Middleware" section:
which seems to have an invalid reference (
static
instead ofstaticProvider
) and an unclosed string literal.)The text was updated successfully, but these errors were encountered: