rebased branches and fixed bugs
This commit is contained in:
parent
4dc44fb6e9
commit
2d13a2b7af
1 changed files with 3 additions and 1 deletions
|
|
@ -20,6 +20,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import server.database.RecipeRepository;
|
||||
import server.service.RecipeService;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -28,6 +29,7 @@ import java.util.Optional;
|
|||
@RestController
|
||||
@RequestMapping("/api")
|
||||
public class RecipeController {
|
||||
private RecipeRepository recipeRepository;
|
||||
private final SimpMessagingTemplate messagingTemplate;
|
||||
private final RecipeService recipeService;
|
||||
|
||||
|
|
@ -122,7 +124,7 @@ public class RecipeController {
|
|||
}
|
||||
|
||||
/**
|
||||
* Performs a search based on a case-insensitive parital match on
|
||||
* Performs a search based on a case-insensitive partial match on
|
||||
* Recipe name and limits the result to a set amount of results.
|
||||
* @param search - name of the recipe to be searched for.
|
||||
* @param limit - limit of the results queried for.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue