Cleanup
All checks were successful
Music Collection CI Workflow / test (./backend) (push) Successful in 30s
Music Collection CI Workflow / test (./frontend) (push) Successful in 37s
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/music-collection-backend, ./backend) (push) Successful in 51s
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Successful in 1m49s
Music Collection CI Workflow / deploy (push) Successful in 24s

This commit is contained in:
Phill Pover 2025-04-07 07:10:33 +01:00
parent 430c9797d7
commit 4fc59d28dd

View File

@ -3,8 +3,7 @@
export async function getAlbums() { export async function getAlbums() {
return fetch('https://api.anatid.net/album', { return fetch('https://api.anatid.net/album', {
method: "GET", method: "GET",
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" }
next: { revalidate: 10 }
}).then(response => { }).then(response => {
if (response.ok) { if (response.ok) {
return response.json(); return response.json();
@ -18,8 +17,7 @@ export async function getAlbums() {
export async function getAlbum(id: number) { export async function getAlbum(id: number) {
return fetch(`https://api.anatid.net/album/${id}`, { return fetch(`https://api.anatid.net/album/${id}`, {
method: "GET", method: "GET",
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" }
next: { revalidate: 10 }
}).then(response => { }).then(response => {
if (response.ok) { if (response.ok) {
return response.json(); return response.json();
@ -97,8 +95,7 @@ export async function deleteAlbum(id: number) {
export async function getSongs() { export async function getSongs() {
return fetch("https://api.anatid.net/song/", { return fetch("https://api.anatid.net/song/", {
method: "GET", method: "GET",
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" }
next: { revalidate: 10 }
}).then(response => { }).then(response => {
if (response.ok) { if (response.ok) {
return response.json(); return response.json();
@ -112,8 +109,7 @@ export async function getSongs() {
export async function getSong(id: number) { export async function getSong(id: number) {
return fetch(`https://api.anatid.net/song/${id}`, { return fetch(`https://api.anatid.net/song/${id}`, {
method: "GET", method: "GET",
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" }
next: { revalidate: 10 }
}).then(response => { }).then(response => {
if (response.ok) { if (response.ok) {
return response.json(); return response.json();