Skip to content

Commit

Permalink
Fix 404s
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Ihbe committed Mar 9, 2012
1 parent f558b68 commit cf57346
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/app.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -328,8 +328,6 @@ var App = function () {
}); });


params = router.first(req, method); params = router.first(req, method);
controllerName = params.controller;
actionName = params.action;
} }


if (params) { if (params) {
Expand All @@ -342,6 +340,8 @@ var App = function () {
}); });
} }
else { else {
controllerName = params.controller;
actionName = params.action;
ctor = ctors[params.controller]; ctor = ctors[params.controller];
if (ctor) { if (ctor) {
// Merge params from the URL and the query-string to produce a // Merge params from the URL and the query-string to produce a
Expand Down

0 comments on commit cf57346

Please sign in to comment.