getShifts method
- int hospitalId
Retrieves a list of shifts for a specific hospital.
hospitalId
The ID of the hospital.
Returns a Future<Map<String, dynamic>>
containing a list of shift data.
Implementation
Future<Map<String, dynamic>> getShifts(int hospitalId) async {
return await _makeRequest('/api/hospitals/$hospitalId/shifts/');
}