diff --git a/src/backend/api/backend.ts b/src/backend/api/backend.ts index a1575fb0..0eed5922 100644 --- a/src/backend/api/backend.ts +++ b/src/backend/api/backend.ts @@ -56,12 +56,12 @@ const getCPUs = async () => { }; const getUpdate = async () => { - const { data } = await server.get("/update"); + const { data } = await server.get("/admin/update"); return data; }; const installUpdate = async () => { - const { data } = await server.post("/update"); + const { data } = await server.post("/admin/update"); return data; }; @@ -131,10 +131,10 @@ export const api = { settings: { get: async () => { - const { data } = await server.get("/settings"); + const { data } = await server.get("/admin/settings"); return data; }, patch: (settings: Partial) => - server.patch("/settings", settings), + server.patch("/admin/settings", settings), }, };