Updated onboarding, reformatted files, improved referenced documents view, updated error handling

This commit is contained in:
Anton Stubenbord
2022-11-03 22:15:36 +01:00
parent 2f2312d5f3
commit 40133b6e0e
117 changed files with 1788 additions and 1021 deletions

View File

@@ -22,13 +22,19 @@ class AuthenticationInterceptor implements InterceptorContract {
}
return request.copyWith(
//Append server Url
url: Uri.parse(authState.authentication!.serverUrl + request.url.toString()),
url: Uri.parse(
authState.authentication!.serverUrl + request.url.toString()),
headers: authState.authentication!.token.isEmpty
? request.headers
: {...request.headers, 'Authorization': 'Token ${authState.authentication!.token}'},
: {
...request.headers,
'Authorization': 'Token ${authState.authentication!.token}'
},
);
}
@override
Future<BaseResponse> interceptResponse({required BaseResponse response}) async => response;
Future<BaseResponse> interceptResponse(
{required BaseResponse response}) async =>
response;
}