From 6c056febbe8aa2b7a9b92bfcf4056d8a7410a2b4 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 8 Feb 2021 18:38:20 +0100 Subject: [PATCH] fix api url --- packages/dashboard/src/pages/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dashboard/src/pages/index.js b/packages/dashboard/src/pages/index.js index 992f5e59..32c1a31b 100644 --- a/packages/dashboard/src/pages/index.js +++ b/packages/dashboard/src/pages/index.js @@ -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 (