Update URL to legit service
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,3 +4,4 @@ input
|
||||
frontend/.vscode
|
||||
backend/vendor
|
||||
backend/deploy.tar
|
||||
frontend/deploy.tar
|
||||
|
@@ -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,
|
||||
});
|
||||
|
Reference in New Issue
Block a user