rebased branches and fixed bugs

This commit is contained in:
Rithvik Sriram 2026-01-08 23:19:50 +01:00
commit 2d13a2b7af

View file

@ -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.