Skip to content

Commit

Permalink
chore: switch to new middleware swagger path, update issues
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Jan 11, 2024
1 parent 1cf4996 commit 7b820ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/store/plugins/initSdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ export default (store) => {
},
}),
(async () => {
const specUrl = `${network.middlewareUrl}/swagger/swagger.json`;
const specUrl = `${network.middlewareUrl}/api`;
const spec = await fetchJson(specUrl);
// TODO: remove after resolving https://github.com/aeternity/ae_mdw/issues/503
// TODO: remove after resolving https://github.com/aeternity/ae_mdw/issues/1670
if (/^https:\/\/(mainnet|testnet)\.aeternity\.io\/mdw$/.test(network.middlewareUrl)) {
spec.basePath = '/mdw/';
}
// TODO: remove after resolving https://github.com/aeternity/ae_mdw/issues/160
// TODO: remove after resolving https://github.com/aeternity/ae_mdw/issues/1668
delete spec.schemes;
// TODO: remove after resolving https://github.com/aeternity/ae_mdw/issues/508
// TODO: remove after resolving https://github.com/aeternity/ae_mdw/issues/1669
spec.paths['/name/pointees/{id}'] = spec.paths['/names/pointees/{id}'];
delete spec.paths['/names/pointees/{id}'];
return genSwaggerClient(specUrl, { spec });
Expand Down

0 comments on commit 7b820ae

Please sign in to comment.