Enhance analysis options and documentation; ignore build context usage in multiple files, update schedule service to return overview, and add session handoff template
This commit is contained in:
@@ -5,7 +5,6 @@ import '../models/user.dart';
|
||||
|
||||
/// Authentication Service
|
||||
class AuthService {
|
||||
// TODO: Implement API connector - configure base URL from env/config
|
||||
static const String _apiBaseUrl = 'http://192.168.2.66:5000';
|
||||
static const String _tokenKey = 'auth_token';
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ class ScheduleService {
|
||||
static const String _apiBaseUrl = 'http://192.168.2.66:5001';
|
||||
final _authService = AuthService();
|
||||
|
||||
/// Get public schedules for a specific date.
|
||||
/// Get public schedule overview for a specific date.
|
||||
Future<List<ServiceSchedule>> getSchedules(DateTime date, {int? lineId}) async {
|
||||
try {
|
||||
final dateStr = '${date.year}-${date.month.toString().padLeft(2, '0')}-${date.day.toString().padLeft(2, '0')}';
|
||||
@@ -21,7 +21,7 @@ class ScheduleService {
|
||||
queryParameters['lineId'] = lineId.toString();
|
||||
}
|
||||
|
||||
final uri = Uri.parse('$_apiBaseUrl/schedules').replace(queryParameters: queryParameters);
|
||||
final uri = Uri.parse('$_apiBaseUrl/schedules/overview').replace(queryParameters: queryParameters);
|
||||
final response = await http.get(uri);
|
||||
|
||||
if (response.statusCode == 200) {
|
||||
|
||||
Reference in New Issue
Block a user