notifications route; added middleware.authenticate to user/uploadpicture api route

This commit is contained in:
psychobunny
2014-03-03 12:30:27 -05:00
parent 5b8e8e4b67
commit 94aeb3ab22
4 changed files with 19 additions and 22 deletions

View File

@@ -1,6 +1,5 @@
"use strict";
var app,
clientScripts,
middleware = {},
@@ -19,7 +18,6 @@ var app,
api: require('./../controllers/api')
};
middleware.authenticate = function(req, res, next) {
if(!req.user) {
if (res.locals.isAPI) {