Add proxy api to get non approved app listings
This commit is contained in:
@@ -6,7 +6,8 @@ exports = module.exports = {
|
||||
enabled: enabled,
|
||||
setEnabled: setEnabled,
|
||||
status: status,
|
||||
login: login
|
||||
login: login,
|
||||
apps: apps
|
||||
};
|
||||
|
||||
var developer = require('../developer.js'),
|
||||
@@ -46,3 +47,10 @@ function login(req, res, next) {
|
||||
});
|
||||
})(req, res, next);
|
||||
}
|
||||
|
||||
function apps(req, res, next) {
|
||||
developer.getNonApprovedApps(function (error, result) {
|
||||
if (error) return next(new HttpError(500, error));
|
||||
next(new HttpSuccess(200, { apps: result }));
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user