- Implemented AddEmployeeController for handling employee creation logic. - Created EmployeeScreen and AddEmployeeScreen for employee management UI. - Added API endpoints for fetching and creating employees. - Updated EmployeeModel to include additional fields: jobRole, email, and phoneNumber. - Refactored MyRefreshWrapper to MyRefreshableContent for consistency. - Enhanced navigation to include employee management routes.
18 lines
834 B
Dart
18 lines
834 B
Dart
class ApiEndpoints {
|
|
static const String baseUrl = "https://stageapi.marcoaiot.com/api";
|
|
|
|
// Attendance Screen API Endpoints
|
|
static const String getProjects = "/project/list";
|
|
static const String getEmployeesByProject = "/attendance/project/team";
|
|
static const String getAttendanceLogs = "/attendance/project/log";
|
|
static const String getAttendanceLogView = "/attendance/log/attendance";
|
|
static const String getRegularizationLogs = "/attendance/regularize";
|
|
static const String uploadAttendanceImage = "/attendance/record-image";
|
|
|
|
// Employee Screen API Endpoints
|
|
static const String getAllEmployeesByProject = "/Project/employees/get";
|
|
static const String getAllEmployees = "/employee/list";
|
|
static const String getRoles = "/roles/jobrole";
|
|
static const String createEmployee = "/employee/manage-mobile";
|
|
}
|