fix: update API endpoints in AuthRepository and RecipeRepository to remove redundant '/api' prefix
This commit is contained in:
@@ -8,7 +8,7 @@ class RecipeRepository {
|
||||
RecipeRepository(this._api);
|
||||
|
||||
Future<List<Recipe>> fetchRecipes({String? token}) async {
|
||||
final response = await _api.get('/api/recipes', token: token);
|
||||
final response = await _api.get('/recipes', token: token);
|
||||
if (response.statusCode != 200) {
|
||||
throw Exception('Failed to load recipes: ${response.statusCode}');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user