:api added seasonApi to fetch seasons for a show

This commit is contained in:
Cron1cle
2025-10-07 16:14:11 +02:00
parent 9da89e6b90
commit de2778d6db
11 changed files with 462 additions and 156 deletions

View File

@@ -26,11 +26,11 @@ export type Show = {
running: boolean;
};
const API_URL = "http://45.157.177.99:8080/shows";
const SHOW_API_URL = "http://45.157.177.99:8080/shows";
export async function getShows(): Promise<Show[]> {
try {
const response = await fetch(API_URL);
const response = await fetch(SHOW_API_URL);
if (!response.ok) {
throw new Error("Network response was not ok");
}