Skip to content

Commit

Permalink
Fix authorization middleware mount point
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan Garofolo committed Jun 18, 2014
1 parent d5e80f3 commit c195c1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ app.use(express.methodOverride())
app.use(express.cookieParser())
app.use(express.cookieSession({secret: "it'sasecrettoeverybody", key: "session"}))
app.use("/", stoopidLogger())
app.use(app.router)
app.use(express.static(__dirname + '/public'))
app.use(app.router)
app.use(notFound)
app.use(catchErrors)
app.use(showErrorPage)
Expand All @@ -89,7 +89,7 @@ app.use(showErrorPage)
app.get("/", home)
app.get("/read_from_db", readFromDB)
app.post("/login", login)
app.all("/", ensureAuthenticated)
app.all("/*", ensureAuthenticated)
app.get("/adventures", adventuresIndex)
app.post("/adventures", createAdventure)
app.put("/adventures/:id", updateAdventure)
Expand Down

0 comments on commit c195c1c

Please sign in to comment.