Commit 6ec38bb4 authored by Leon Tappe's avatar Leon Tappe 🔥
Browse files

add motd api call

parent 79e25cc3
......@@ -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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment