|
|
|
|
@ -19,7 +19,7 @@ class ApiManager {
|
|
|
|
|
|
|
|
|
|
Map<String, String> get _headers => {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
// 'X-Timezone-Offset': DateTime.now().timeZoneOffset.toString().split(".").first, todo @later, enable in next Release
|
|
|
|
|
'X-Timezone-Offset': DateTime.now().timeZoneOffset.toString().split(".").first,
|
|
|
|
|
if (user != null) 'Authorization': 'Bearer ${user!.token}',
|
|
|
|
|
if (assetGroup != null) 'AssetGroup': assetGroup!.id.toString(),
|
|
|
|
|
};
|
|
|
|
|
|