This commit is contained in:
Mohamed Nouffer
2022-04-18 11:16:23 +05:30
parent e6cf730ae2
commit 95667a5a57
4 changed files with 9 additions and 9 deletions

View File

@ -6,7 +6,7 @@ import 'package:http/http.dart' as http;
class LocationService{
static Future<GeoJsonFeatureCollection?> loadLocations() async {
String url = 'http://localhost:8100/api/location/';
String url = 'http://container.intranet.sumasen.net:8100/api/location/';
final response = await http.get(Uri.parse(url),
headers: <String, String>{
'Content-Type': 'application/json; charset=UTF-8',
@ -21,7 +21,7 @@ class LocationService{
}
static Future<GeoJsonFeatureCollection?> loadLocationsFor(String perfecture) async {
String url = 'http://localhost:8100/api/inperf/?perf=' + perfecture;
String url = 'http://container.intranet.sumasen.net:8100/api/inperf/?perf=' + perfecture;
final response = await http.get(Uri.parse(url),
headers: <String, String>{
'Content-Type': 'application/json; charset=UTF-8',
@ -38,7 +38,7 @@ class LocationService{
static Future<GeoJsonFeatureCollection?> loadLocationsSubFor(String subperfecture) async {
String url = 'http://localhost:8100/api/insubperf?subperf=' + subperfecture;
String url = 'http://container.intranet.sumasen.net:8100/api/insubperf?subperf=' + subperfecture;
final response = await http.get(Uri.parse(url),
headers: <String, String>{
'Content-Type': 'application/json; charset=UTF-8',