aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/index.tsx
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-04-11 17:14:22 +0800
committerFabio Berger <me@fabioberger.com>2018-04-11 17:14:22 +0800
commitf0afc0ae45c82d6e1227307e9cc7eca711ccaa05 (patch)
tree52a140b962114bb440afb267628ef0342097a591 /packages/website/ts/index.tsx
parent6d1a587c5c5666a54c29302db90dd4d9fc79059e (diff)
downloaddexon-sol-tools-f0afc0ae45c82d6e1227307e9cc7eca711ccaa05.tar
dexon-sol-tools-f0afc0ae45c82d6e1227307e9cc7eca711ccaa05.tar.gz
dexon-sol-tools-f0afc0ae45c82d6e1227307e9cc7eca711ccaa05.tar.bz2
dexon-sol-tools-f0afc0ae45c82d6e1227307e9cc7eca711ccaa05.tar.lz
dexon-sol-tools-f0afc0ae45c82d6e1227307e9cc7eca711ccaa05.tar.xz
dexon-sol-tools-f0afc0ae45c82d6e1227307e9cc7eca711ccaa05.tar.zst
dexon-sol-tools-f0afc0ae45c82d6e1227307e9cc7eca711ccaa05.zip
Update 0x.js and web3-wrapper doc urls so that last segment is identical to package name. Keep legacy endpoints.
Diffstat (limited to 'packages/website/ts/index.tsx')
-rw-r--r--packages/website/ts/index.tsx13
1 files changed, 12 insertions, 1 deletions
diff --git a/packages/website/ts/index.tsx b/packages/website/ts/index.tsx
index d542bd804..5bc36da32 100644
--- a/packages/website/ts/index.tsx
+++ b/packages/website/ts/index.tsx
@@ -15,7 +15,7 @@ import { createLazyComponent } from 'ts/lazy_component';
import { trackedTokenStorage } from 'ts/local_storage/tracked_token_storage';
import { tradeHistoryStorage } from 'ts/local_storage/trade_history_storage';
import { reducer, State } from 'ts/redux/reducer';
-import { WebsitePaths } from 'ts/types';
+import { WebsiteLegacyPaths, WebsitePaths } from 'ts/types';
import { analytics } from 'ts/utils/analytics';
import { muiTheme } from 'ts/utils/mui_theme';
import { utils } from 'ts/utils/utils';
@@ -98,6 +98,17 @@ render(
path={`${WebsitePaths.SmartContracts}/:version?`}
component={LazySmartContractsDocumentation}
/>
+
+ {/* Legacy endpoints */}
+ <Route
+ path={`${WebsiteLegacyPaths.ZeroExJs}/:version?`}
+ component={LazyZeroExJSDocumentation}
+ />
+ <Route
+ path={`${WebsiteLegacyPaths.Web3Wrapper}/:version?`}
+ component={LazyWeb3WrapperDocumentation}
+ />
+
<Route component={NotFound as any} />
</Switch>
</div>