Renaming assets-group to assets/group

This commit is contained in:
softsimon committed 2022-02-07 03:34:15 +04:00
1 parent f0398e906d
commit 4c2c6396ba
7 files changed
+12 -12

No files matched your search

+1 -1
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)
;
}
+1 -1
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) {