Commit 588b8b6b authored by Ilham Maulana's avatar Ilham Maulana 💻

fix: API endpoint use hosted domain

parent ff6e0c6f
...@@ -11,7 +11,7 @@ import 'package:library_app/src/models/user.dart'; ...@@ -11,7 +11,7 @@ import 'package:library_app/src/models/user.dart';
class AuthProvider with ChangeNotifier { class AuthProvider with ChangeNotifier {
final storage = const FlutterSecureStorage(); final storage = const FlutterSecureStorage();
String baseUrl = 'http://localhost:8000/api/v1'; String baseUrl = 'http://ilhammaulana.pythonanywhere.com/api/v1';
String? message; String? message;
User? user; User? user;
......
...@@ -4,7 +4,7 @@ import 'package:flutter/foundation.dart'; ...@@ -4,7 +4,7 @@ import 'package:flutter/foundation.dart';
import 'package:http/http.dart' as http; import 'package:http/http.dart' as http;
class BookProvider with ChangeNotifier { class BookProvider with ChangeNotifier {
String baseUrl = 'http://localhost:8000/api/v1'; String baseUrl = 'http://ilhammaulana.pythonanywhere.com/api/v1';
List<dynamic>? books; List<dynamic>? books;
List<dynamic>? categories; List<dynamic>? categories;
Category? category; Category? category;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment