Skip to content
Snippets Groups Projects
Commit 47781ab3 authored by Jonas Braathen's avatar Jonas Braathen
Browse files

Fix useOus endpoint

parent 0aa36306
No related branches found
No related tags found
1 merge request!173Consents
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment