feat: TTLock — scan TTHotel sources for API config (CE_ConfigServer)
- Agent: ttlock:find_api_config command scans TTHotel app JS files for CE_ConfigServer calls, oauth2 endpoints, API server URLs - Backend: POST /ttlock/find-api-config route - UI: Search button on each workstation row to trigger scan Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -619,6 +619,9 @@ export const api = {
|
||||
testApi: (slug: string, workstationId: string) =>
|
||||
req<{ ok: boolean; lockCount?: number }>('POST', `/api/hotels/${slug}/ttlock/test-api`, { workstation_id: workstationId }),
|
||||
|
||||
findApiConfig: (slug: string, workstationId: string) =>
|
||||
req<{ ok: boolean; appDir?: string; results?: { path: string; matches: string[] }[] }>('POST', `/api/hotels/${slug}/ttlock/find-api-config`, { workstation_id: workstationId }),
|
||||
|
||||
dllInfo: (slug: string, workstationId: string) =>
|
||||
req<{ ok: boolean; content: string; path: string }>('GET', `/api/hotels/${slug}/ttlock/dll-info?workstation_id=${workstationId}`),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user