diff --git a/frontend/src/api/dtos/UserListResponse.ts b/frontend/src/api/dtos/UserListResponse.ts new file mode 100644 index 0000000..ed6b669 --- /dev/null +++ b/frontend/src/api/dtos/UserListResponse.ts @@ -0,0 +1,8 @@ +import {UserDto} from "./UserDto.js"; + +/** + * API response for delivering a list of users + */ +export class UserListResponse { + valueList: UserDto[] = []; +} \ No newline at end of file diff --git a/frontend/src/api/points/UserPoint.ts b/frontend/src/api/points/UserPoint.ts index 0614c2a..02d0695 100644 --- a/frontend/src/api/points/UserPoint.ts +++ b/frontend/src/api/points/UserPoint.ts @@ -3,13 +3,14 @@ import type {UserDto} from "../dtos/UserDto"; import type {CreateUserRequest} from "../dtos/CreateUserRequest.ts"; import type {ChangeUserPasswordRequest} from "../dtos/ChangeUserPasswordRequest.ts"; import type {CreateUserResponse} from "../dtos/CreateUserResponse.ts"; +import type {UserListResponse} from "../dtos/UserListResponse.ts"; export async function fetchCurrentUser(): Promise { return apiClient.get("/user/me"); } -export async function fetchAllUsers(): Promise { - return apiClient.get("/user/list"); +export async function fetchAllUsers(): Promise { + return apiClient.get("/user/all"); } export async function createUser(dto: CreateUserRequest): Promise { diff --git a/frontend/src/components/recipes/IngredientGroupListEditor.tsx b/frontend/src/components/recipes/IngredientGroupListEditor.tsx index ddbfb06..6cf42af 100644 --- a/frontend/src/components/recipes/IngredientGroupListEditor.tsx +++ b/frontend/src/components/recipes/IngredientGroupListEditor.tsx @@ -50,6 +50,7 @@ export function IngredientGroupListEditor({ingredientGroupList, onChange}: Ingre {ingredientGroupList.map((ingGrp, index) => (