Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add new lifts route that returns sample data for now

  • Loading branch information...
commit 4b47dfc1757e7bbf2269737bd5eef61723585999 1 parent 10293ce
@mikepmunroe authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/routes.js
View
6 lib/routes.js
@@ -14,12 +14,14 @@ 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);
@@ -27,7 +29,7 @@ module.exports = function(app) {
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);
Please sign in to comment.
Something went wrong with that request. Please try again.