selfprivacy.org.app/lib/logic/api_maps/server.dart
2021-01-21 08:35:38 +01:00

13 lines
253 B
Dart

import 'package:dio/dio.dart';
import 'api_map.dart';
class ServerApi extends ApiMap {
ServerApi([String token]) {
if (token != null) {
loggedClient.options =
BaseOptions(headers: {'Authorization': 'Bearer $token'});
}
}
}