fix: update API endpoints in AuthRepository and RecipeRepository to remove redundant '/api' prefix
This commit is contained in:
@@ -10,7 +10,7 @@ class AuthRepository {
|
||||
|
||||
Future<String> login(String email, String password) async {
|
||||
final response = await _api.post(
|
||||
'/api/auth/login',
|
||||
'/auth/login',
|
||||
jsonEncode({'email': email, 'password': password}),
|
||||
);
|
||||
if (response.statusCode != 200 && response.statusCode != 201) {
|
||||
|
||||
Reference in New Issue
Block a user