mirror of
https://github.com/immich-app/immich.git
synced 2024-12-16 12:20:08 +02:00
16 lines
463 B
Dart
16 lines
463 B
Dart
import 'dart:convert';
|
|
|
|
import 'package:dio/dio.dart';
|
|
import 'package:immich_mobile/shared/services/network.service.dart';
|
|
import 'package:immich_mobile/shared/models/server_info.model.dart';
|
|
|
|
class ServerInfoService {
|
|
final NetworkService _networkService = NetworkService();
|
|
|
|
Future<ServerInfo> getServerInfo() async {
|
|
Response response = await _networkService.getRequest(url: 'server-info');
|
|
|
|
return ServerInfo.fromJson(response.toString());
|
|
}
|
|
}
|