This commit is contained in:
2024-07-06 23:23:01 +02:00
parent 169ba29253
commit c9e7717130
39 changed files with 395 additions and 326 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import ReactDOM from "react";
import "/public/global.css"
import "./index.css"
import { Post } from "@/models";
import { constructAPIUrl } from "@/util";
import { constructAPIUrl } from "@/util/url";
import Link from "next/link";
import { Attributes } from "@sequelize/core";
@@ -17,7 +17,7 @@ type DeepPartial<T> = T extends object ? {
export default async function Test() {
const response = await fetch(constructAPIUrl('post'));
const response = await fetch(await constructAPIUrl('post'));
const articles:Array<Attributes<Post>> = await response.json();