mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-02-19 03:00:49 +08:00
fix(auth-files): send aliases for oauth model alias patch
This commit is contained in:
@@ -105,7 +105,7 @@ export const authFilesApi = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
saveOauthModelMappings: (channel: string, mappings: OAuthModelMappingEntry[]) =>
|
saveOauthModelMappings: (channel: string, mappings: OAuthModelMappingEntry[]) =>
|
||||||
apiClient.patch('/oauth-model-alias', { channel, mappings }),
|
apiClient.patch('/oauth-model-alias', { channel, aliases: mappings }),
|
||||||
|
|
||||||
deleteOauthModelMappings: (channel: string) =>
|
deleteOauthModelMappings: (channel: string) =>
|
||||||
apiClient.delete(`/oauth-model-alias?channel=${encodeURIComponent(channel)}`),
|
apiClient.delete(`/oauth-model-alias?channel=${encodeURIComponent(channel)}`),
|
||||||
|
|||||||
Reference in New Issue
Block a user