Skip to content

Commit

Permalink
feat: fix route
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmagnus committed Sep 22, 2023
1 parent ccd5023 commit b97d172
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion frontend/src/app/auth/hocs/require-auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const RequireAuth = ({ children }: { children: JSX.Element }): JSX.Element => {

if (!isAuthenticated) {
return (
<Navigate to={`/sandbox/v2/login`} state={{ from: location }} replace />
<Navigate to={`/login`} state={{ from: location }} replace />
)
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/core/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const CoreRouter = (): JSX.Element => {
]

return (
<Router>
<Router basename='/sandbox/v2'>
<Routes>{routes.map(route => route)}</Routes>
</Router>
)
Expand Down
54 changes: 27 additions & 27 deletions frontend/src/components/enums/path-route.ts
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
export enum PathRoute {
SANDBOX = '/sandbox/v2/sandbox',
HOME = '/sandbox/v2/',
LOGIN = '/sandbox/v2/login/:expired?',
SIGNUP = '/sandbox/v2/signup',
RESET_PASSWORD = '/sandbox/v2/reset-password',
PAYMENTS_TOKENS = '/sandbox/v2/payments-tokens',
SECURITIES_TOKENS = '/sandbox/v2/securities-tokens',
SOROBAN_SMART_CONTRACTS = '/sandbox/v2/soroban-smart-contracts',
SANDBOX = '/sandbox',
HOME = '/',
LOGIN = '/login/:expired?',
SIGNUP = '/signup',
RESET_PASSWORD = '/reset-password',
PAYMENTS_TOKENS = '/payments-tokens',
SECURITIES_TOKENS = '/securities-tokens',
SOROBAN_SMART_CONTRACTS = '/soroban-smart-contracts',
BLOCKCHAIN_EXPLORER = '/blockchain-explorer',
SETTINGS = '/sandbox/v2/settings/team-members',
PERMISSIONS = '/sandbox/v2/settings/permissions',
ROLES_MANAGE = '/sandbox/v2/settings/roles_manage',
PROFILE = '/sandbox/v2/profile',
FORGE_ASSET = '/sandbox/v2/forge-asset',
ASSET_HOME = '/sandbox/v2/asset-management/home',
MINT_ASSET = '/sandbox/v2/asset-management/mint',
BURN_ASSET = '/sandbox/v2/asset-management/burn',
DISTRIBUTE_ASSET = '/sandbox/v2/asset-management/distribute',
AUTHORIZE_ACCOUNT = '/sandbox/v2/asset-management/authorize',
CLAWBACK_ASSET = '/sandbox/v2/asset-management/clawback',
FREEZE_ACCOUNT = '/sandbox/v2/asset-management/freeze',
VAULTS = '/sandbox/v2/vaults',
VAULT_CREATE = '/sandbox/v2/vault-create',
VAULT_DETAIL = '/sandbox/v2/vault-detail',
CONTRACT_DETAIL = '/sandbox/v2/contract-detail',
CONTRACT_CREATE = '/sandbox/v2/contract-create',
TOKEN_MANAGEMENT = '/sandbox/v2/token-management',
DASHBOARDS = '/sandbox/v2/dashboards',
SETTINGS = '/settings/team-members',
PERMISSIONS = '/settings/permissions',
ROLES_MANAGE = '/settings/roles_manage',
PROFILE = '/profile',
FORGE_ASSET = '/forge-asset',
ASSET_HOME = '/asset-management/home',
MINT_ASSET = '/asset-management/mint',
BURN_ASSET = '/asset-management/burn',
DISTRIBUTE_ASSET = '/asset-management/distribute',
AUTHORIZE_ACCOUNT = '/asset-management/authorize',
CLAWBACK_ASSET = '/asset-management/clawback',
FREEZE_ACCOUNT = '/asset-management/freeze',
VAULTS = '/vaults',
VAULT_CREATE = '/vault-create',
VAULT_DETAIL = '/vault-detail',
CONTRACT_DETAIL = '/contract-detail',
CONTRACT_CREATE = '/contract-create',
TOKEN_MANAGEMENT = '/token-management',
DASHBOARDS = '/dashboards',
}

0 comments on commit b97d172

Please sign in to comment.