🐛 Bug fixes and support new version of API
This commit is contained in:
@ -65,12 +65,13 @@ final apiClientProvider = Provider<Dio>((ref) {
|
||||
final serverUrl = ref.watch(serverUrlProvider);
|
||||
final dio = Dio(
|
||||
BaseOptions(
|
||||
baseUrl: serverUrl,
|
||||
baseUrl: '$serverUrl/api',
|
||||
connectTimeout: const Duration(seconds: 10),
|
||||
receiveTimeout: const Duration(seconds: 10),
|
||||
headers: {
|
||||
'Accept': 'application/json',
|
||||
'Content-Type': 'application/json',
|
||||
'X-Client': 'Solian',
|
||||
},
|
||||
),
|
||||
);
|
||||
|
Reference in New Issue
Block a user