yes
This commit is contained in:
+2
-2
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user