mirror of
https://github.com/go-vikunja/app
synced 2024-06-03 19:19:46 +00:00
056b2d72c9
This PR formats all code with dart format and adds a step to the CI so that it will be checked on every push and PR.
18 lines
482 B
Dart
18 lines
482 B
Dart
import 'package:vikunja_app/api/client.dart';
|
|
import 'package:vikunja_app/api/service.dart';
|
|
import 'package:vikunja_app/models/server.dart';
|
|
|
|
import '../service/services.dart';
|
|
|
|
class ServerAPIService extends APIService implements ServerService {
|
|
ServerAPIService(Client client) : super(client);
|
|
|
|
@override
|
|
Future<Server?> getInfo() {
|
|
return client.get('/info').then((value) {
|
|
if (value == null) return null;
|
|
return Server.fromJson(value.body);
|
|
});
|
|
}
|
|
}
|