mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-25 14:34:19 +00:00
🔧 Update to new API routes
This commit is contained in:
parent
4803a8db59
commit
12f8058da1
3 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
})
|
||||
|
||||
|
|
|
@ -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,
|
||||
})
|
||||
|
||||
|
|
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue