refactor(settings): refactored the query placement for better reuse

This commit is contained in:
2025-03-05 20:21:28 -06:00
parent fda0719d87
commit 71a951a9f2
3 changed files with 138 additions and 15 deletions

View File

@@ -13,5 +13,6 @@ export function getSettings(token: string) {
const fetchSettings = async (token: string) => {
const {data} = await axios.get("/api/server/settings", {headers: {Authorization: `Bearer ${token}`}});
return data.data;
};