changed base path of REST api and updated frontend api quering

This commit is contained in:
2022-06-02 19:08:10 +02:00
parent cb74fe133c
commit f0ce8a615b
4 changed files with 15 additions and 12 deletions

View File

@@ -5,14 +5,11 @@ import lombok.extern.slf4j.Slf4j;
import whattocook.models.Item;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import whattocook.models.Unit;
import whattocook.services.ItemService;
import java.util.List;
@Slf4j
@RestController()
@RequestMapping("/api/v1")
public class ItemController {
@Autowired