From 47781ab3b6adf4e779b4a65b34ce2d9dcc627b2c Mon Sep 17 00:00:00 2001 From: Jonas Braathen <jonas.braathen@usit.uio.no> Date: Mon, 29 Nov 2021 11:18:46 +0100 Subject: [PATCH] Fix useOus endpoint --- frontend/src/hooks/useOus/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/hooks/useOus/index.tsx b/frontend/src/hooks/useOus/index.tsx index 0109ec3b..900a6af4 100644 --- a/frontend/src/hooks/useOus/index.tsx +++ b/frontend/src/hooks/useOus/index.tsx @@ -10,7 +10,7 @@ type OuData = { function useOus(): OuData[] { const [ous, setOus] = useState<OuData[]>([]) const getOptions = async () => { - const response = await fetch('/api/ui/v1/ous/', fetchJsonOpts()) + const response = await fetch('/api/ui/v1/ous', fetchJsonOpts()) if (response.ok) { const ousJson = await response.json() setOus(ousJson) -- GitLab