Build [v1.4.0] - Audit Dashboard & LDAP Restoration
This commit is contained in:
@@ -164,5 +164,31 @@ export const inventoryApi = {
|
||||
deleteCategory: async (id: number) => {
|
||||
const res = await axiosInstance.delete(`/categories/${id}`);
|
||||
return res.data;
|
||||
},
|
||||
|
||||
// Database Management
|
||||
getDbBackups: async () => {
|
||||
const res = await axiosInstance.get('/admin/db/backups');
|
||||
return res.data;
|
||||
},
|
||||
getDbStats: async () => {
|
||||
const res = await axiosInstance.get('/admin/db/stats');
|
||||
return res.data;
|
||||
},
|
||||
triggerBackup: async () => {
|
||||
const res = await axiosInstance.post('/admin/db/backup');
|
||||
return res.data;
|
||||
},
|
||||
restoreDatabase: async (filename: string) => {
|
||||
const res = await axiosInstance.post('/admin/db/restore', { filename, confirm: true });
|
||||
return res.data;
|
||||
},
|
||||
getDbSettings: async () => {
|
||||
const res = await axiosInstance.get('/admin/db/settings');
|
||||
return res.data;
|
||||
},
|
||||
updateDbSettings: async (settings: any) => {
|
||||
const res = await axiosInstance.patch('/admin/db/settings', settings);
|
||||
return res.data;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user