feat: Onboarding

This commit is contained in:
Aleksi Lassila
2024-05-25 00:28:13 +03:00
parent 47845d1dd9
commit dc1b25dc22
22 changed files with 2320 additions and 65 deletions

View File

@@ -212,7 +212,7 @@ export class RadarrApi implements Api<paths> {
})
.then((res) => res.response.ok) || Promise.resolve(false);
getRadarrHealth = async (
getHealth = async (
baseUrl: string | undefined = undefined,
apiKey: string | undefined = undefined
) =>
@@ -222,8 +222,7 @@ export class RadarrApi implements Api<paths> {
'X-Api-Key': apiKey || this.getSettings()?.apiKey
}
})
.then((res) => res.status === 200)
.catch(() => false);
.catch((e) => e.response);
getRootFolders = async (
baseUrl: string | undefined = undefined,