18 lines
351 B
Dart
18 lines
351 B
Dart
import 'package:dio/dio.dart';
|
|
import 'package:flutter/foundation.dart';
|
|
|
|
class ApiClient {
|
|
static const String _apiBase =
|
|
kDebugMode ? "https://aurcache.heili.eu/api" : "api";
|
|
final Dio _dio = Dio(BaseOptions(baseUrl: _apiBase));
|
|
|
|
String? token;
|
|
DateTime? tokenValidUntil;
|
|
|
|
ApiClient();
|
|
|
|
Dio getRawClient() {
|
|
return _dio;
|
|
}
|
|
}
|