Compare commits

...

2 Commits

Author SHA1 Message Date
dd8677fa9f f 2026-06-17 21:03:36 +03:00
9c8f4a1205 fix url 2026-06-17 21:00:16 +03:00
2 changed files with 6 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ npm run lint # ESLint
`https://app.admin.elcsa.ru` (hardcoded in `src/features/admin/api/adminApi.ts`), `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. 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 - **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 On a dedicated admin host this could be simplified to `/` — left unchanged to
preserve existing behavior. preserve existing behavior.
- Path aliases (`@app/*`, `@pages/*`, `@widgets/*`, `@features/*`, `@shared/*`) match - Path aliases (`@app/*`, `@pages/*`, `@widgets/*`, `@features/*`, `@shared/*`) match

View File

@@ -1,12 +1,12 @@
export const ROUTES = { export const ROUTES = {
ADMIN: '/sys-c7f29a4e-d81b-4630-ops-console', ADMIN: '/',
ADMIN_ORGANIZATION: '/sys-c7f29a4e-d81b-4630-ops-console/organizations/:organizationId', ADMIN_ORGANIZATION: '/organizations/:organizationId',
ADMIN_ORGANIZATION_CREATE_REQUEST: ADMIN_ORGANIZATION_CREATE_REQUEST:
'/sys-c7f29a4e-d81b-4630-ops-console/organizations/:organizationId/purchase-requests/new', '/organizations/:organizationId/purchase-requests/new',
} as const } as const
export const adminOrganizationPath = (id: string) => export const adminOrganizationPath = (id: string) =>
`/sys-c7f29a4e-d81b-4630-ops-console/organizations/${id}` `/organizations/${id}`
export const adminOrganizationCreateRequestPath = (id: string) => export const adminOrganizationCreateRequestPath = (id: string) =>
`/sys-c7f29a4e-d81b-4630-ops-console/organizations/${id}/purchase-requests/new` `/organizations/${id}/purchase-requests/new`