Skip to content
Snippets Groups Projects
Commit 6ec38bb4 authored by Leon Tappe's avatar Leon Tappe :fire:
Browse files

add motd api call

parent 79e25cc3
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,19 @@ class VerificationApi {
_log.severe(response.body);
return TicketResponse(null, error: VerificationErrorType.other);
}
Future<String> getMotd() async {
final response = await _client.get(Uri.parse('$baseUrl/motd'));
_log.finer('getMotd received ${response.statusCode} status');
if (response.statusCode == 200) {
_log.finest(response.body);
return response.body;
} else {
_log.severe(response.body);
return '';
}
}
}
enum VerificationErrorType {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment