diff --git a/code/frontend/src/components/interactive/BoxRepositoriesActive.js b/code/frontend/src/components/interactive/BoxRepositoriesActive.js index 42ace13..1f99f31 100644 --- a/code/frontend/src/components/interactive/BoxRepositoriesActive.js +++ b/code/frontend/src/components/interactive/BoxRepositoriesActive.js @@ -16,7 +16,7 @@ import BoxAlert from "../base/BoxAlert" */ export default function BoxRepositoriesActive({ ...props }) { const {fetchDataAuth} = useContext(ContextUser) - const {data, started, loading, error} = useData(fetchDataAuth, "GET", "/api/repository/list", { + const {data, started, loading, error} = useData(fetchDataAuth, "GET", "/api/v1/repositories/", { "onlyAlive": true, }) diff --git a/code/frontend/src/components/interactive/BoxRepositoriesArchived.js b/code/frontend/src/components/interactive/BoxRepositoriesArchived.js index 2b2d4a5..227e415 100644 --- a/code/frontend/src/components/interactive/BoxRepositoriesArchived.js +++ b/code/frontend/src/components/interactive/BoxRepositoriesArchived.js @@ -16,7 +16,7 @@ import BoxAlert from "../base/BoxAlert" */ export default function BoxRepositoriesArchived({ ...props }) { const {fetchDataAuth} = useContext(ContextUser) - const {data, started, loading, error} = useData(fetchDataAuth, "GET", "/api/repository/list", { + const {data, started, loading, error} = useData(fetchDataAuth, "GET", "/api/v1/repositories/", { "onlyDead": true, }) diff --git a/code/frontend/src/components/providers/GlobalUser.js b/code/frontend/src/components/providers/GlobalUser.js index 4797ae6..4e0dcf8 100644 --- a/code/frontend/src/components/providers/GlobalUser.js +++ b/code/frontend/src/components/providers/GlobalUser.js @@ -51,7 +51,7 @@ export default function GlobalUser({ children }) { */ const login = useCallback(async (email, password) => { console.debug("Contacting server to login...") - const data = await fetchData("POST", `/api/login`, { + const data = await fetchData("POST", `/api/v1/login`, { "email": email, "password": password, })