Update URL to legit service

This commit is contained in:
2024-10-31 12:59:13 +01:00
parent 024b5d5b3d
commit 9ef4520fae
2 changed files with 3 additions and 2 deletions

View File

@@ -2,14 +2,14 @@
import Layout from "../layouts/Layout.astro";
import type { APIResponse, Player, Note } from "../types";
const res = await fetch("http://localhost:3000/player");
const res = await fetch("https://stinky-backend.site.quack-lab.dev/player");
const data: APIResponse<Player[]> = await res.json();
const request = { success: true, message: "" };
if (Astro.request.method === "POST") {
try {
const body = await Astro.request.text();
const res = await fetch("http://localhost:3000/note/new", {
const res = await fetch("https://stinky-backend.site.quack-lab.dev/note/new", {
method: "POST",
body,
});