Compare commits
2 Commits
2fdefeeadd
...
dd8677fa9f
| Author | SHA1 | Date | |
|---|---|---|---|
| dd8677fa9f | |||
| 9c8f4a1205 |
@@ -19,7 +19,7 @@ npm run lint # ESLint
|
||||
`https://app.admin.elcsa.ru` (hardcoded in `src/features/admin/api/adminApi.ts`),
|
||||
with its own in-memory access token + localStorage-backed refresh token. No CSRF.
|
||||
- **Routes** are preserved from the original app: the panel is served under the
|
||||
obscured path `/sys-c7f29a4e-d81b-4630-ops-console`. See `src/shared/config/routes.ts`.
|
||||
obscured path `/`. See `src/shared/config/routes.ts`.
|
||||
On a dedicated admin host this could be simplified to `/` — left unchanged to
|
||||
preserve existing behavior.
|
||||
- Path aliases (`@app/*`, `@pages/*`, `@widgets/*`, `@features/*`, `@shared/*`) match
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
export const ROUTES = {
|
||||
ADMIN: '/sys-c7f29a4e-d81b-4630-ops-console',
|
||||
ADMIN_ORGANIZATION: '/sys-c7f29a4e-d81b-4630-ops-console/organizations/:organizationId',
|
||||
ADMIN: '/',
|
||||
ADMIN_ORGANIZATION: '/organizations/:organizationId',
|
||||
ADMIN_ORGANIZATION_CREATE_REQUEST:
|
||||
'/sys-c7f29a4e-d81b-4630-ops-console/organizations/:organizationId/purchase-requests/new',
|
||||
'/organizations/:organizationId/purchase-requests/new',
|
||||
} as const
|
||||
|
||||
export const adminOrganizationPath = (id: string) =>
|
||||
`/sys-c7f29a4e-d81b-4630-ops-console/organizations/${id}`
|
||||
`/organizations/${id}`
|
||||
|
||||
export const adminOrganizationCreateRequestPath = (id: string) =>
|
||||
`/sys-c7f29a4e-d81b-4630-ops-console/organizations/${id}/purchase-requests/new`
|
||||
`/organizations/${id}/purchase-requests/new`
|
||||
|
||||
Reference in New Issue
Block a user