Permalink
Browse files

move middleware to controllers

  • Loading branch information...
1 parent 0a09d06 commit b4e954cb7e9aab1f74b7dc721019925053cecd43 Visnu Pitiyanuvath committed Jul 23, 2011
View
@@ -1,5 +1,5 @@
app = require '../config/app'
-{ ensureAuth, loadPerson, loadPersonTeam } = require '../lib/route-middleware'
+{ ensureAuth, loadPerson, loadPersonTeam } = require './middleware'
Team = app.db.model 'Team'
app.get '/login/done', [ensureAuth, loadPerson, loadPersonTeam], (req, res, next) ->
File renamed without changes.
@@ -1,6 +1,6 @@
_ = require 'underscore'
app = require '../config/app'
-m = require '../lib/route-middleware'
+m = require './middleware'
Person = app.db.model 'Person'
Team = app.db.model 'Team'
View
@@ -1,7 +1,7 @@
_ = require 'underscore'
colors = require 'colors'
app = require '../config/app'
-{ ensureAuth } = require '../lib/route-middleware'
+{ ensureAuth } = require './middleware'
Team = app.db.model 'Team'
Person = app.db.model 'Person'
Vote = app.db.model 'Vote'

0 comments on commit b4e954c

Please sign in to comment.