mirror of
https://github.com/immich-app/immich.git
synced 2024-11-19 20:08:57 -07:00
026f3c24e9
* Added reserve geocoding, location in search suggestion, and search by location * Added mapbox sdk to app * Added mapbox to image detailed view
21 lines
697 B
Dart
21 lines
697 B
Dart
import 'package:dio/dio.dart';
|
|
import 'package:immich_mobile/shared/models/mapbox_info.model.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());
|
|
}
|
|
|
|
Future<MapboxInfo> getMapboxInfo() async {
|
|
Response response = await _networkService.getRequest(url: 'server-info/mapbox');
|
|
|
|
return MapboxInfo.fromJson(response.toString());
|
|
}
|
|
}
|