add rest method

This commit is contained in:
Ivan Socolsky 2015-04-02 11:28:16 -03:00
parent fe29fa107a
commit 19f5e4b011
1 changed files with 10 additions and 0 deletions

View File

@ -284,6 +284,16 @@ ExpressApp.start = function(opts) {
});
});
router.post('/v1/addresses/scan/', function(req, res) {
getServerWithAuth(req, res, function(server) {
server.startScan(req.body, function(err) {
if (err) return returnError(err, res, req);
res.end();
});
});
});
app.use(opts.basePath || '/bws/api', router);
return app;
};