evg_ultimate_team / frontend /src /services /adminService.ts
clementpep's picture
fix: git lfs import in dockerfile and reset db option in admin panel
c15d82e
/**
* Admin Service - API calls for admin operations
*/
import apiClient from './api';
/**
* Reset the entire database (DANGER ZONE)
*
* Drops all tables, recreates schema, and re-seeds with initial data.
* This action is IRREVERSIBLE.
*
* @returns Success message
*/
export const resetDatabase = async (): Promise<{ success: boolean; message: string }> => {
const response = await apiClient.post('/admin/reset-database');
return response.data;
};