From 4fc59d28dd5c7a91c44c0304e1ef77c6baf063d3 Mon Sep 17 00:00:00 2001 From: Phill Pover Date: Mon, 7 Apr 2025 07:10:33 +0100 Subject: [PATCH] Cleanup --- frontend/src/app/actions.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/frontend/src/app/actions.tsx b/frontend/src/app/actions.tsx index 58e4ed6..d240984 100644 --- a/frontend/src/app/actions.tsx +++ b/frontend/src/app/actions.tsx @@ -3,8 +3,7 @@ export async function getAlbums() { return fetch('https://api.anatid.net/album', { method: "GET", - headers: { "Content-Type": "application/json" }, - next: { revalidate: 10 } + headers: { "Content-Type": "application/json" } }).then(response => { if (response.ok) { return response.json(); @@ -18,8 +17,7 @@ export async function getAlbums() { export async function getAlbum(id: number) { return fetch(`https://api.anatid.net/album/${id}`, { method: "GET", - headers: { "Content-Type": "application/json" }, - next: { revalidate: 10 } + headers: { "Content-Type": "application/json" } }).then(response => { if (response.ok) { return response.json(); @@ -97,8 +95,7 @@ export async function deleteAlbum(id: number) { export async function getSongs() { return fetch("https://api.anatid.net/song/", { method: "GET", - headers: { "Content-Type": "application/json" }, - next: { revalidate: 10 } + headers: { "Content-Type": "application/json" } }).then(response => { if (response.ok) { return response.json(); @@ -112,8 +109,7 @@ export async function getSongs() { export async function getSong(id: number) { return fetch(`https://api.anatid.net/song/${id}`, { method: "GET", - headers: { "Content-Type": "application/json" }, - next: { revalidate: 10 } + headers: { "Content-Type": "application/json" } }).then(response => { if (response.ok) { return response.json();