Skip to content

Commit

Permalink
change endpoint from admin/namespaces to chooser/namespaces (G-Resear…
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiovincenzi authored and vinayan3 committed Aug 28, 2024
1 parent 70549c0 commit d00c169
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/src/components/SideBar/SideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ function SideBar(): React.FunctionComponentElement<React.ReactNode> {
}, []);

useEffect(() => {
fetch(`${getBaseHost()}/admin/namespaces/list`)
fetch(`${getBaseHost()}/chooser/namespaces`)
.then((response) => response.json())
.then((data) =>
setNamespaces(data.map((item: { code: any }) => item.code)),
);

fetch(`${getBaseHost()}${getPrefix()}admin/namespaces/current`)
fetch(`${getBaseHost()}${getPrefix()}chooser/namespaces/current`)
.then((response) => response.json())
.then((data) => {
const selected = data.code;
Expand Down

0 comments on commit d00c169

Please sign in to comment.