From 4f68b2b0e3afb205e4e0e61f55e5e56c34b23ed7 Mon Sep 17 00:00:00 2001 From: wonbin <wonbin3977@gmail.com> Date: Wed, 21 May 2025 19:44:04 +0900 Subject: [PATCH] Bachend_Integration --- lib/main.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 27641fa..e9826a5 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -59,7 +59,7 @@ class MyAppState extends ChangeNotifier { Future<List<WordPair>> fetchFavorites() async { final response=await http.get( - Uri.parse('https://wonbin3977.web.ajousw.kr/likes')); + Uri.parse('http://localhost:3000/likes')); List<WordPair> list = []; var jsonData = jsonDecode(response.body); @@ -73,7 +73,7 @@ class MyAppState extends ChangeNotifier { } Future<void> toggleFavorite() async { - var uri ="https:wonbin3977.web.ajousw.kr/likes/${current.first}_${current.second}"; + var uri ="http://localhost:3000/likes/${current.first}_${current.second}"; if(favorites.contains(current)) { final http.Response resp=await http.delete(Uri.parse(uri)); if(resp.statusCode!=200) { -- GitLab