mirror of
https://github.com/YuzuZensai/Minikura.git
synced 2026-01-06 04:32:37 +00:00
18 lines
320 B
TypeScript
18 lines
320 B
TypeScript
import { api } from "@minikura/api";
|
|
|
|
async function fetchData() {
|
|
const response = await api.index.get();
|
|
return response;
|
|
}
|
|
|
|
export default async function Page() {
|
|
const data = await fetchData();
|
|
|
|
return (
|
|
<div>
|
|
<h1>Hello React</h1>
|
|
<pre>{JSON.stringify(data, null, 2)}</pre>
|
|
</div>
|
|
);
|
|
}
|