:api added seasonApi to fetch seasons for a show
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user