This commit is contained in:
Mohamed Nouffer
2022-06-06 21:15:58 +05:30
parent eea432c3c7
commit 3d9f20fd66
11 changed files with 168 additions and 34 deletions

View File

@ -9,7 +9,8 @@ class DestinationService{
static Future<List<dynamic>> getDestinations(int user_id) async {
List<dynamic> cats = [];
String url = "http://container.intranet.sumasen.net:8100/api/destinations/?user_id=${user_id}";
//String url = "http://container.intranet.sumasen.net:8100/api/destinations/?user_id=${user_id}";
String url = "http://localhost:8100/api/destinations/?user_id=${user_id}";
final http.Response response = await http.get(
Uri.parse(url),
headers: <String, String>{
@ -25,7 +26,8 @@ class DestinationService{
static Future<Map<String, dynamic>> deleteDestination(int dest_id) async {
Map<String, dynamic> cats = {};
String url = "http://container.intranet.sumasen.net:8100/api/delete_destination/?dest_id=${dest_id}";
//String url = "http://container.intranet.sumasen.net:8100/api/delete_destination/?dest_id=${dest_id}";
String url = "http://localhost:8100/api/delete_destination/?dest_id=${dest_id}";
final http.Response response = await http.get(
Uri.parse(url),
headers: <String, String>{
@ -42,7 +44,8 @@ class DestinationService{
static Future<int> updateOrder(int action_id, int order, String dir) async {
int cats = 0;
String url = "http://container.intranet.sumasen.net:8100/api/updateorder/?user_action_id=${action_id}&order=${order}&dir=${dir}";
//String url = "http://container.intranet.sumasen.net:8100/api/updateorder/?user_action_id=${action_id}&order=${order}&dir=${dir}";
String url = "http://localhost:8100/api/updateorder/?user_action_id=${action_id}&order=${order}&dir=${dir}";
final http.Response response = await http.get(
Uri.parse(url),
headers: <String, String>{