feat: způsob přihlášení a správa obchodů podle konfigurace serveru
CI / Generate TypeScript types (push) Successful in 12s
CI / Server unit tests (push) Successful in 26s
CI / Build server (push) Successful in 32s
CI / Build client (push) Successful in 41s
CI / Playwright E2E tests (push) Successful in 1m47s
CI / Build and push Docker image (push) Successful in 49s
CI / Notify (push) Successful in 2s
CI / Generate TypeScript types (push) Successful in 12s
CI / Server unit tests (push) Successful in 26s
CI / Build server (push) Successful in 32s
CI / Build client (push) Successful in 41s
CI / Playwright E2E tests (push) Successful in 1m47s
CI / Build and push Docker image (push) Successful in 49s
CI / Notify (push) Successful in 2s
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
get:
|
||||
operationId: getConfig
|
||||
summary: Vrátí veřejnou runtime konfiguraci pro klienta (např. Sentry DSN, limity objednávek). Nevyžaduje autentizaci.
|
||||
summary: Vrátí veřejnou runtime konfiguraci pro klienta (Sentry DSN, limity objednávek, způsob přihlášení, zapnuté funkce). Nevyžaduje autentizaci.
|
||||
security: [] # Nevyžaduje autentizaci
|
||||
responses:
|
||||
"200":
|
||||
@@ -9,8 +9,22 @@ get:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
required: [sentry, limits]
|
||||
required: [sentry, limits, auth, features]
|
||||
properties:
|
||||
auth:
|
||||
type: object
|
||||
required: [trustedHeaders]
|
||||
properties:
|
||||
trustedHeaders:
|
||||
type: boolean
|
||||
description: Přihlášení probíhá přes důvěryhodné hlavičky z proxy (HTTP_REMOTE_USER_ENABLED) — klient nezobrazuje formulář se jménem
|
||||
features:
|
||||
type: object
|
||||
required: [storeAdmin]
|
||||
properties:
|
||||
storeAdmin:
|
||||
type: boolean
|
||||
description: Správa obchodů je zapnutá (server má nastavené ADMIN_PASSWORD)
|
||||
limits:
|
||||
type: object
|
||||
required: [group]
|
||||
|
||||
Reference in New Issue
Block a user