mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-04 08:27:46 +08:00
feat(ccswitch): 添加一键导入和用量查询
This commit is contained in:
@@ -881,6 +881,17 @@ const mockHandlers: Record<string, (config: AxiosRequestConfig) => Promise<Axios
|
||||
return createMockResponse(MOCK_USER_API_KEYS)
|
||||
},
|
||||
|
||||
'GET /api/users/me/client-config': async () => {
|
||||
await delay()
|
||||
const baseUrl = typeof window !== 'undefined'
|
||||
? window.location.origin
|
||||
: 'https://demo.aether.local'
|
||||
return createMockResponse({
|
||||
base_url: baseUrl,
|
||||
site_name: 'Aether Demo',
|
||||
})
|
||||
},
|
||||
|
||||
'POST /api/users/me/api-keys': async (config) => {
|
||||
await delay()
|
||||
const body = JSON.parse(config.data || '{}')
|
||||
|
||||
Reference in New Issue
Block a user