diff --git a/lib/main.dart b/lib/main.dart index 27641fa2557077798a8b8bdb79d9d9c43242290b..e9826a52941217c971cf03ccbc1914654168df0f 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) {