Implemented search for everything (#17)
This commit is contained in:
parent
ad74d24ee2
commit
d3de658882
18 changed files with 49 additions and 32 deletions
|
|
@ -37,7 +37,10 @@ func (c *WebHandler) ReadAllWeb(ctx echo.Context) error {
|
|||
return echo.NewHTTPError(http.StatusBadRequest, "Bad page requested.")
|
||||
}
|
||||
|
||||
lists, err := currentStruct.ReadAll(¤tUser, pageNumber)
|
||||
// Search
|
||||
search := ctx.QueryParam("s")
|
||||
|
||||
lists, err := currentStruct.ReadAll(search, ¤tUser, pageNumber)
|
||||
if err != nil {
|
||||
return HandleHTTPError(err)
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue