From 7f68b7ae3898b482c9b342b45983352262961b9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20Guid=C3=A9e?= Date: Sun, 26 Nov 2023 18:26:29 -0500 Subject: [PATCH] Update /settings and /update routes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Quentin Guidée --- src/backend/api/backend.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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), }, };