Compare commits

...

3 Commits

Author SHA1 Message Date
Codex
65741b73f0 Add healthcheck endpoint 2026-07-01 12:22:16 +03:00
dd8677fa9f f 2026-06-17 21:03:36 +03:00
9c8f4a1205 fix url 2026-06-17 21:00:16 +03:00
3 changed files with 11 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`),
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

View File

@@ -9,6 +9,11 @@ server {
gzip_min_length 1024;
gzip_types text/plain text/css application/javascript application/json image/svg+xml;
location = /healthcheck {
add_header Content-Type application/json;
return 200 'ok';
}
location /assets/ {
expires 1y;
add_header Cache-Control "public, immutable";

View File

@@ -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`