feat: refactor API paths for authentication, inventory, and recipes; add contract tests for repositories

This commit is contained in:
Nils-Johan Gynther
2026-04-22 10:21:07 +02:00
parent 655adf66ae
commit c163821bad
8 changed files with 246 additions and 19 deletions
@@ -1,5 +1,6 @@
import '../../../core/api/api_client.dart';
import '../../../core/api/api_exception.dart';
import '../../../core/api/api_paths.dart';
import '../../../core/platform/token_storage.dart';
class AuthRepository {
@@ -11,7 +12,7 @@ class AuthRepository {
Future<String> login(String username, String password) async {
try {
final data = await _api.postJson(
'/auth/login',
AuthApiPaths.login,
body: {'username': username, 'password': password},
);