feat: Implement a structured API service layer for authentication and user management, replacing the old API utility.

This commit is contained in:
pradeepkumar
2025-12-22 11:53:38 +05:30
parent aa97e36cfd
commit c4ccb2bd6c
10 changed files with 469 additions and 198 deletions

21
src/services/index.ts Normal file
View File

@@ -0,0 +1,21 @@
// API Client
export { default as api } from './api';
export type { ApiResponse, ApiErrorResponse } from './api';
export { getErrorMessage, getFieldErrors } from './api';
// Auth Service
export { authService } from './auth.service';
export type {
LoginRequest,
AuthUser,
AuthResponse,
MessageResponse,
} from './auth.service';
// Users Service
export { usersService } from './users.service';
export type {
User,
UsersListResponse,
UserFilters,
} from './users.service';