diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-07-02 16:45:44 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-07-02 16:45:44 -0400 |
| commit | 3a4ce7f31adc53b3c22e9dc75155de0281521ef0 (patch) | |
| tree | 58e1c8ec660a4af5c1f46054c81f1f8b5fe78680 /server | |
| parent | 221a14315b09946db2485036bbf4a80295dc4889 (diff) | |
| parent | 109f1ec54ff2e8c574c8fc4a819aaa2f226795cd (diff) | |
Merge branch 'master' of github.com:okfocus/vvalls
Diffstat (limited to 'server')
| -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 bb242ee..4b628e4 100644 --- a/server/index.js +++ b/server/index.js @@ -79,14 +79,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')); @@ -102,6 +99,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) |
