mirror of
https://github.com/go-vikunja/app
synced 2024-06-04 19:49:52 +00:00
15 lines
424 B
Dart
15 lines
424 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) => Server.fromJson(value.body));
|
|
}
|
|
}
|