Skip to content

Commit

Permalink
Update /settings and /update routes
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin Guidée <[email protected]>
  • Loading branch information
quentinguidee committed Nov 26, 2023
1 parent 99f26d4 commit 7f68b7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/backend/api/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ const getCPUs = async () => {
};

const getUpdate = async () => {
const { data } = await server.get<Update>("/update");
const { data } = await server.get<Update>("/admin/update");
return data;
};

const installUpdate = async () => {
const { data } = await server.post("/update");
const { data } = await server.post("/admin/update");
return data;
};

Expand Down Expand Up @@ -131,10 +131,10 @@ export const api = {

settings: {
get: async () => {
const { data } = await server.get<Settings>("/settings");
const { data } = await server.get<Settings>("/admin/settings");
return data;
},
patch: (settings: Partial<Settings>) =>
server.patch("/settings", settings),
server.patch("/admin/settings", settings),
},
};

0 comments on commit 7f68b7a

Please sign in to comment.