summaryrefslogtreecommitdiff
path: root/server/index.js
diff options
context:
space:
mode:
authorJulie Lala <jules@okfoc.us>2014-06-27 10:11:20 -0400
committerJulie Lala <jules@okfoc.us>2014-06-27 10:11:20 -0400
commit109f1ec54ff2e8c574c8fc4a819aaa2f226795cd (patch)
tree5508d337509fc04f7c9efbc7fc6401ae0e50a4d0 /server/index.js
parentbde9f3e47d66a1c8a334763146671320ac0359f9 (diff)
rearrange
Diffstat (limited to 'server/index.js')
-rw-r--r--server/index.js9
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)