Refactor code structure for improved readability and maintainability
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -28,6 +28,15 @@ class PantryApiPaths {
|
||||
static String remove(int id) => '/pantry/$id';
|
||||
}
|
||||
|
||||
class UserApiPaths {
|
||||
static const me = '/users/me';
|
||||
static const list = '/users';
|
||||
static String setRole(int id) => '/users/$id/role';
|
||||
static String setPremium(int id) => '/users/$id/premium';
|
||||
static String delete(int id) => '/users/$id';
|
||||
static String resetPassword(int id) => '/users/$id/reset-password';
|
||||
}
|
||||
|
||||
class MealPlanApiPaths {
|
||||
static const list = '/meal-plan';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user