Update URL to legit service
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,3 +4,4 @@ input
|
|||||||
frontend/.vscode
|
frontend/.vscode
|
||||||
backend/vendor
|
backend/vendor
|
||||||
backend/deploy.tar
|
backend/deploy.tar
|
||||||
|
frontend/deploy.tar
|
||||||
|
@@ -2,14 +2,14 @@
|
|||||||
import Layout from "../layouts/Layout.astro";
|
import Layout from "../layouts/Layout.astro";
|
||||||
import type { APIResponse, Player, Note } from "../types";
|
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 data: APIResponse<Player[]> = await res.json();
|
||||||
|
|
||||||
const request = { success: true, message: "" };
|
const request = { success: true, message: "" };
|
||||||
if (Astro.request.method === "POST") {
|
if (Astro.request.method === "POST") {
|
||||||
try {
|
try {
|
||||||
const body = await Astro.request.text();
|
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",
|
method: "POST",
|
||||||
body,
|
body,
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user