Commit 2dd8ef35 authored by tom's avatar tom

routes path fixes

parent 76193424
...@@ -3,7 +3,7 @@ import appConfig from 'configs/app/config'; ...@@ -3,7 +3,7 @@ import appConfig from 'configs/app/config';
import { ROUTES } from './routes'; import { ROUTES } from './routes';
import type { RouteName } from './routes'; import type { RouteName } from './routes';
const PATH_PARAM_REGEXP = /\/\[(\w+)\]/g; const PATH_PARAM_REGEXP = /\/:(\w+)/g;
export default function link( export default function link(
routeName: RouteName, routeName: RouteName,
......
...@@ -7,16 +7,16 @@ const paths = { ...@@ -7,16 +7,16 @@ const paths = {
custom_abi: `/account/custom_abi`, custom_abi: `/account/custom_abi`,
profile: `/auth/profile`, profile: `/auth/profile`,
txs: `/txs`, txs: `/txs`,
tx: `/tx/[id]`, tx: `/tx/:id`,
blocks: `/blocks`, blocks: `/blocks`,
block: `/block/[id]`, block: `/block/:id`,
tokens: `/tokens`, tokens: `/tokens`,
token_index: `/token/[hash]`, token_index: `/token/:hash`,
token_instance_item: `/token/[hash]/instance/[id]`, token_instance_item: `/token/:hash/instance/:id`,
address_index: `/address/[id]`, address_index: `/address/:id`,
address_contract_verification: `/address/[id]/contract_verifications/new`, address_contract_verification: `/address/:id/contract_verifications/new`,
apps: `/apps`, apps: `/apps`,
app_index: `/apps/[id]`, app_index: `/apps/:id`,
search_results: `/search-results`, search_results: `/search-results`,
other: `/search-results`, other: `/search-results`,
auth: `/auth/auth0`, auth: `/auth/auth0`,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment