Permalink
Browse files

add new lifts route that returns sample data for now

  • Loading branch information...
1 parent 10293ce commit 4b47dfc1757e7bbf2269737bd5eef61723585999 @mikepmunroe committed Feb 23, 2014
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/routes.js
View
@@ -14,20 +14,22 @@ module.exports = function(app) {
// Server API Routes
app.get('/api/awesomeThings', api.awesomeThings);
-
+
app.post('/api/users', users.create);
app.put('/api/users', users.changePassword);
app.get('/api/users/me', users.me);
app.get('/api/users/:id', users.show);
+ app.get('/api/lifts', api.awesomeThings);
+
app.post('/api/session', session.login);
app.del('/api/session', session.logout);
// All undefined api routes should return a 404
app.get('/api/*', function(req, res) {
res.send(404);
});
-
+
// All other routes to use Angular routing in app/scripts/app.js
app.get('/partials/*', index.partials);
app.get('/*', middleware.setUserCookie, index.index);

0 comments on commit 4b47dfc

Please sign in to comment.