mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 23:45:48 +01:00
🚑 Fix API url for services
This commit is contained in:
@@ -34,7 +34,7 @@ export default function CalendarComponent(props: any) {
|
|||||||
if (sonarrService && sonarrService.apiKey) {
|
if (sonarrService && sonarrService.apiKey) {
|
||||||
const baseUrl = new URL(sonarrService.url).origin;
|
const baseUrl = new URL(sonarrService.url).origin;
|
||||||
fetch(
|
fetch(
|
||||||
`${baseUrl}api/calendar?apikey=${sonarrService?.apiKey}&end=${nextMonth}`
|
`${baseUrl}/api/calendar?apikey=${sonarrService?.apiKey}&end=${nextMonth}`
|
||||||
).then((response) => {
|
).then((response) => {
|
||||||
response.ok &&
|
response.ok &&
|
||||||
response.json().then((data) => {
|
response.json().then((data) => {
|
||||||
@@ -52,7 +52,7 @@ export default function CalendarComponent(props: any) {
|
|||||||
}
|
}
|
||||||
if (radarrService && radarrService.apiKey) {
|
if (radarrService && radarrService.apiKey) {
|
||||||
const baseUrl = new URL(radarrService.url).origin;
|
const baseUrl = new URL(radarrService.url).origin;
|
||||||
fetch(`${baseUrl}api/v3/calendar?apikey=${radarrService?.apiKey}&end=${nextMonth}`).then(
|
fetch(`${baseUrl}/api/v3/calendar?apikey=${radarrService?.apiKey}&end=${nextMonth}`).then(
|
||||||
(response) => {
|
(response) => {
|
||||||
response.ok &&
|
response.ok &&
|
||||||
response.json().then((data) => {
|
response.json().then((data) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user