1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-22 04:54:18 +00:00

🔧 Update to new API routes

This commit is contained in:
Stefano Pigozzi 2021-04-30 15:49:18 +02:00
parent 4803a8db59
commit 12f8058da1
Signed by untrusted user who does not match committer: steffo
GPG key ID: 6965406171929D01
3 changed files with 3 additions and 3 deletions

View file

@ -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,
})

View file

@ -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,
})

View file

@ -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,
})