fix api url

This commit is contained in:
Karol Wypchlo 2021-02-08 18:38:20 +01:00
parent e99becb144
commit 6c056febbe
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import Layout from "../components/Layout";
const fetcher = (url) => fetch(url).then((r) => r.json());
export default function Home() {
const { data: user, error } = useSWR("/api/user", fetcher);
const { data: user, error } = useSWR("/user", fetcher);
return (
<Layout title="Dashboard">