Skip to content

Commit

Permalink
fix api
Browse files Browse the repository at this point in the history
  • Loading branch information
febryardiansyah committed Aug 19, 2020
1 parent 474ccde commit 84b4c90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/constants/base_url.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

const String BaseUrl = 'https://10.0.2.2:8000/api/';
const String BaseUrl = 'https://api.illyasviel.pw/api/';

///TODO:
// you have to change the API Base url by deploying https://github.com/febryardiansyah/manga-api
2 changes: 1 addition & 1 deletion lib/repositories/recommended_repo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:mangamint/service/api_service.dart';

class RecommendedRepo{
Future<List<RecommendedList>>getRecomended()async{
final response = await ApiService.api.get(BaseUrl+'recomended');
final response = await ApiService.api.get(BaseUrl+'recommended');
if(response.statusCode == 200){
var res = json.decode(response.body);
List<RecommendedList>recommendedList = RecommendedModel.fromJson(res).recommendedList;
Expand Down

0 comments on commit 84b4c90

Please sign in to comment.