From 95667a5a5714afd8a5ac9aeaf49acde9dd3d715c Mon Sep 17 00:00:00 2001 From: Mohamed Nouffer Date: Mon, 18 Apr 2022 11:16:23 +0530 Subject: [PATCH] up[date --- lib/services/location_line_service.dart | 2 +- lib/services/location_polygon_service.dart | 2 +- lib/services/location_service.dart | 6 +++--- lib/services/perfecture_service.dart | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/services/location_line_service.dart b/lib/services/location_line_service.dart index 68309cb..a5adc70 100644 --- a/lib/services/location_line_service.dart +++ b/lib/services/location_line_service.dart @@ -7,7 +7,7 @@ class LocationLineService{ final geo = GeoJson(); GeoJsonFeature? fs; - String url = 'http://localhost:8100/api/location_line/'; + String url = 'http://container.intranet.sumasen.net:8100/api/location_line/'; final response = await http.get(Uri.parse(url), headers: { 'Content-Type': 'application/json; charset=UTF-8', diff --git a/lib/services/location_polygon_service.dart b/lib/services/location_polygon_service.dart index 59e4d56..cf4b03d 100644 --- a/lib/services/location_polygon_service.dart +++ b/lib/services/location_polygon_service.dart @@ -7,7 +7,7 @@ class LocationPolygonervice{ final geo = GeoJson(); GeoJsonFeature? fs; - String url = 'http://localhost:8100/api/location_polygon/'; + String url = 'http://container.intranet.sumasen.net:8100/api/location_polygon/'; final response = await http.get(Uri.parse(url), headers: { 'Content-Type': 'application/json; charset=UTF-8', diff --git a/lib/services/location_service.dart b/lib/services/location_service.dart index d183fd2..c8b80de 100644 --- a/lib/services/location_service.dart +++ b/lib/services/location_service.dart @@ -6,7 +6,7 @@ import 'package:http/http.dart' as http; class LocationService{ static Future 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: { 'Content-Type': 'application/json; charset=UTF-8', @@ -21,7 +21,7 @@ class LocationService{ } static Future 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: { 'Content-Type': 'application/json; charset=UTF-8', @@ -38,7 +38,7 @@ class LocationService{ static Future 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: { 'Content-Type': 'application/json; charset=UTF-8', diff --git a/lib/services/perfecture_service.dart b/lib/services/perfecture_service.dart index ceefdd5..635ddcf 100644 --- a/lib/services/perfecture_service.dart +++ b/lib/services/perfecture_service.dart @@ -6,7 +6,7 @@ class PerfectureService{ static Future?> loadPerfectures() async { List perfs = []; - String url = 'http://localhost:8100/api/perf_main/'; + String url = 'http://container.intranet.sumasen.net:8100/api/perf_main/'; final response = await http.get(Uri.parse(url), headers: { 'Content-Type': 'application/json; charset=UTF-8', @@ -22,7 +22,7 @@ class PerfectureService{ static Future?> loadSubPerfectures(String sub) async { List perfs = []; - String url = 'http://localhost:8100/api/subperfinmain/?perf=' + sub; + String url = 'http://container.intranet.sumasen.net:8100/api/subperfinmain/?perf=' + sub; //String url = 'http://container.intranet.sumasen.net:8100/api/insubperf/?perf=' + sub; final response = await http.get(Uri.parse(url), headers: { @@ -40,7 +40,7 @@ class PerfectureService{ static Future?> getMainPerfExt(String id) async { List perfs = []; - String url = 'http://localhost:8100/api/mainperfext/?perf=' + id; + String url = 'http://container.intranet.sumasen.net:8100/api/mainperfext/?perf=' + id; final response = await http.get(Uri.parse(url), headers: { 'Content-Type': 'application/json; charset=UTF-8', @@ -57,7 +57,7 @@ class PerfectureService{ static Future?> getSubExt(String id) async { List perfs = []; - String url = 'http://localhost:8100/api/perfext/?sub_perf=' + id; + String url = 'http://container.intranet.sumasen.net:8100/api/perfext/?sub_perf=' + id; final response = await http.get(Uri.parse(url), headers: { 'Content-Type': 'application/json; charset=UTF-8',