1
0
Fork 0

idk if this works or not

This commit is contained in:
amy 2025-04-30 16:25:29 +03:30
parent e6d9d4c9a0
commit add75dced1
No known key found for this signature in database

View file

@ -16,7 +16,7 @@ interface NeoReview extends Review {
export default function Reviews() { export default function Reviews() {
const [reviews, setReviews] = createSignal<NeoReview[]>([]); const [reviews, setReviews] = createSignal<NeoReview[]>([]);
onMount(() => { onMount(() => {
fetch("https://review.exhq.dev/getreviews") fetch("https://maggie.amy.rip/reviews")
.then((response) => response.json()) .then((response) => response.json())
.then((data: Review[]) => { .then((data: Review[]) => {
const promises = data.map((review) => const promises = data.map((review) =>
@ -106,10 +106,10 @@ export async function sendReview(
): Promise<boolean> { ): Promise<boolean> {
try { try {
const response = await fetch( const response = await fetch(
`https://review.exhq.dev/sendreview?review=${review}`, `https://maggie.amy.rip/sendreview?review=${review}`,
{ {
headers: { headers: {
Auth: token, Authentication: token,
}, },
method: "POST", method: "POST",
}, },