getBaseUrlResponse function Null safety
- String chapterId
Returns a http response of Base URL for chapterId
or uuid
Implementation
Future<http.Response> getBaseUrlResponse(String chapterId) async {
var unencodedPath = '/at-home/server/$chapterId';
var response = await http.get(Uri.https(authority, unencodedPath),
headers: {HttpHeaders.contentTypeHeader: 'application/json'});
return response;
}