Address index and api.

Address view.
This commit is contained in:
softsimon
2020-07-13 21:46:25 +07:00
parent db2e293ce5
commit 432fb9cd66
22 changed files with 295 additions and 54 deletions

View File

@@ -120,6 +120,15 @@ class Routes {
res.header('X-Total-Count', count.toString());
res.send(transactions);
}
public getBisqAddress(req: Request, res: Response) {
const result = bisq.getAddress(req.params.address.substr(1));
if (result) {
res.send(result);
} else {
res.status(404).send('Bisq address not found');
}
}
}
export default new Routes();