diff --git a/backend/src/index.ts b/backend/src/index.ts index 5dea199fc..557c269dd 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -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) ; } diff --git a/backend/src/routes.ts b/backend/src/routes.ts index e937678cc..39c1983d2 100644 --- a/backend/src/routes.ts +++ b/backend/src/routes.ts @@ -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) { diff --git a/frontend/src/app/app-routing.module.ts b/frontend/src/app/app-routing.module.ts index d0ac5cca2..bc9bb94fc 100644 --- a/frontend/src/app/app-routing.module.ts +++ b/frontend/src/app/app-routing.module.ts @@ -363,7 +363,7 @@ if (browserWindowEnv && browserWindowEnv.BASE_MODULE === 'liquid') { component: AssetComponent }, { - path: 'asset-group/:id', + path: 'group/:id', component: AssetGroupComponent }, { @@ -472,7 +472,7 @@ if (browserWindowEnv && browserWindowEnv.BASE_MODULE === 'liquid') { component: AssetComponent }, { - path: 'asset-group/:id', + path: 'group/:id', component: AssetGroupComponent }, { diff --git a/frontend/src/app/components/assets/asset-group/asset-group.component.html b/frontend/src/app/components/assets/asset-group/asset-group.component.html index 8d476671d..46b3b9eae 100644 --- a/frontend/src/app/components/assets/asset-group/asset-group.component.html +++ b/frontend/src/app/components/assets/asset-group/asset-group.component.html @@ -16,7 +16,7 @@
diff --git a/frontend/src/app/components/assets/assets-featured/assets-featured.component.html b/frontend/src/app/components/assets/assets-featured/assets-featured.component.html index f8ace8ef0..b87713ceb 100644 --- a/frontend/src/app/components/assets/assets-featured/assets-featured.component.html +++ b/frontend/src/app/components/assets/assets-featured/assets-featured.component.html @@ -2,18 +2,18 @@