Renaming assets-group to assets/group

This commit is contained in:
softsimon
2022-02-06 19:43:57 +04:00
parent 680372db64
commit 7a8e432ae6
7 changed files with 12 additions and 12 deletions

View File

@@ -321,7 +321,7 @@ class Server {
.get(config.MEMPOOL.API_URL_PREFIX + 'assets/icons', routes.getAllLiquidIcon)
.get(config.MEMPOOL.API_URL_PREFIX + 'assets/featured', routes.$getAllFeaturedLiquidAssets)
.get(config.MEMPOOL.API_URL_PREFIX + 'asset/:assetId/icon', routes.getLiquidIcon)
.get(config.MEMPOOL.API_URL_PREFIX + 'asset-group/:id', routes.$getAssetGroup)
.get(config.MEMPOOL.API_URL_PREFIX + 'assets/group/:id', routes.$getAssetGroup)
;
}

View File

@@ -868,7 +868,7 @@ class Routes {
public async $getAssetGroup(req: Request, res: Response) {
try {
const response = await axios.get('https://mempool.space/api/v1/asset-group/' + parseInt(req.params.id, 10),
const response = await axios.get('https://mempool.space/api/v1/assets/group/' + parseInt(req.params.id, 10),
{ responseType: 'stream', timeout: 10000 });
response.data.pipe(res);
} catch (e) {