Compare commits
3 Commits
2fdefeeadd
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
65741b73f0 | ||
| dd8677fa9f | |||
| 9c8f4a1205 |
@@ -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
|
||||||
|
|||||||
@@ -9,6 +9,11 @@ server {
|
|||||||
gzip_min_length 1024;
|
gzip_min_length 1024;
|
||||||
gzip_types text/plain text/css application/javascript application/json image/svg+xml;
|
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/ {
|
location /assets/ {
|
||||||
expires 1y;
|
expires 1y;
|
||||||
add_header Cache-Control "public, immutable";
|
add_header Cache-Control "public, immutable";
|
||||||
|
|||||||
@@ -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`
|
||||||
|
|||||||
Reference in New Issue
Block a user