Skip to content

Commit

Permalink
🚚 Migrate api endpoint to railway
Browse files Browse the repository at this point in the history
  • Loading branch information
iqfareez committed Sep 15, 2022
1 parent d55a62d commit 996b2cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Networking/fetch_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'astros_model.dart';
class FetchData {
static Future<AstrosModel> getAstros() async {
final response =
await http.get(Uri.parse('https://astros-api.herokuapp.com/data'));
await http.get(Uri.parse('https://astros.up.railway.app/data'));
if (response.statusCode == 200) {
return AstrosModel.fromJson(jsonDecode(response.body));
} else {
Expand Down

0 comments on commit 996b2cc

Please sign in to comment.