diff options
| author | Julie Lala <jules@okfoc.us> | 2014-06-27 10:11:20 -0400 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2014-06-27 10:11:20 -0400 |
| commit | 109f1ec54ff2e8c574c8fc4a819aaa2f226795cd (patch) | |
| tree | 5508d337509fc04f7c9efbc7fc6401ae0e50a4d0 | |
| parent | bde9f3e47d66a1c8a334763146671320ac0359f9 (diff) | |
rearrange
| -rw-r--r-- | server/index.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/server/index.js b/server/index.js index b008131..ff3ccfe 100644 --- a/server/index.js +++ b/server/index.js @@ -78,14 +78,11 @@ site.setup = function(){ site.route = function () { app.get('/', views.home); - app.get('/about', views.docs); - app.get('/about/:name/edit', views.docs); - app.get('/about/:name', views.docs); app.get('/login', views.modal); + app.get('/logout', auth.logout); app.get('/signup', views.modal); app.post('/auth/signin', auth.loggedInLocal); app.post('/auth/signup', auth.signup); - app.get('/logout', auth.logout); app.get('/auth/twitter', auth.login('twitter')); app.get('/auth/twitter/callback', auth.loggedIn('twitter')); app.get('/auth/facebook', auth.login('facebook')); @@ -94,6 +91,10 @@ site.route = function () { app.get('/profile/edit', views.profile) app.get('/profile/:name', views.profile) + app.get('/about', views.docs); + app.get('/about/:name/edit', views.docs); + app.get('/about/:name', views.docs); + app.get('/api/profile', middleware.ensureAuthenticated, api.profile.show) app.put('/api/profile', middleware.ensureAuthenticated, api.profile.update) |
