mirror of
https://github.com/immich-app/immich.git
synced 2025-11-25 05:50:43 +09:00
chore(web): generate API functions with a single argument (#2568)
This commit is contained in:
1904
web/src/api/open-api/api.ts
generated
1904
web/src/api/open-api/api.ts
generated
File diff suppressed because it is too large
Load Diff
@@ -21,13 +21,13 @@ export const oauth = {
|
||||
getConfig: (location: Location) => {
|
||||
const redirectUri = location.href.split('?')[0];
|
||||
console.log(`OAuth Redirect URI: ${redirectUri}`);
|
||||
return api.oauthApi.generateConfig({ redirectUri });
|
||||
return api.oauthApi.generateConfig({ oAuthConfigDto: { redirectUri } });
|
||||
},
|
||||
login: (location: Location) => {
|
||||
return api.oauthApi.callback({ url: location.href });
|
||||
return api.oauthApi.callback({ oAuthCallbackDto: { url: location.href } });
|
||||
},
|
||||
link: (location: Location): AxiosPromise<UserResponseDto> => {
|
||||
return api.oauthApi.link({ url: location.href });
|
||||
return api.oauthApi.link({ oAuthCallbackDto: { url: location.href } });
|
||||
},
|
||||
unlink: () => {
|
||||
return api.oauthApi.unlink();
|
||||
|
||||
Reference in New Issue
Block a user