fetch custom dash config from services
This commit is contained in:
@@ -7,6 +7,7 @@ class ServicesRoutes {
|
||||
public initRoutes(app: Application): void {
|
||||
app
|
||||
.get(config.MEMPOOL.API_URL_PREFIX + 'wallet/:walletId', this.$getWallet)
|
||||
.get(config.MEMPOOL.API_URL_PREFIX + 'services/custom/config', this.$getCustomConfig)
|
||||
;
|
||||
}
|
||||
|
||||
@@ -22,6 +23,11 @@ class ServicesRoutes {
|
||||
handleError(req, res, 500, 'Failed to get wallet');
|
||||
}
|
||||
}
|
||||
|
||||
// serve a blank custom config file by default
|
||||
private async $getCustomConfig(req: Request, res: Response): Promise<void> {
|
||||
res.status(200).contentType('application/javascript').send('');
|
||||
}
|
||||
}
|
||||
|
||||
export default new ServicesRoutes();
|
||||
|
||||
Reference in New Issue
Block a user