mirror of
https://github.com/fergalmoran/roboto-promoto.git
synced 2025-12-22 09:37:37 +00:00
Update to bs theme and datatables for grid
This commit is contained in:
@@ -10,7 +10,6 @@ var index = require('./controllers'),
|
||||
|
||||
module.exports = function (app) {
|
||||
|
||||
app.use('/api', mers({mongoose: mongoose}).rest());
|
||||
|
||||
/*
|
||||
// Server API Routes
|
||||
@@ -18,10 +17,6 @@ module.exports = function (app) {
|
||||
app.post('/api/promotions', promotions.create);
|
||||
app.post('/api/promotions/:id', promotions.show);
|
||||
|
||||
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.post('/api/session', session.login);
|
||||
app.del('/api/session', session.logout);
|
||||
@@ -32,6 +27,16 @@ module.exports = function (app) {
|
||||
});
|
||||
*/
|
||||
|
||||
app.post('/api/session', session.login);
|
||||
app.del('/api/session', session.logout);
|
||||
|
||||
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.use('/api', mers({mongoose: mongoose}).rest());
|
||||
|
||||
// All other routes to use Angular routing in app/scripts/app.js
|
||||
app.get('/partials/*', index.partials);
|
||||
app.get('/*', middleware.setUserCookie, index.index);
|
||||
|
||||
Reference in New Issue
Block a user