Added functions for adding items to a todolist
This commit is contained in:
@ -16,6 +16,11 @@ func GetListsByUser(c echo.Context) error {
|
||||
|
||||
allLists, err := models.GetListsByUser(¤tUser)
|
||||
if err != nil {
|
||||
|
||||
if models.IsErrListDoesNotExist(err) {
|
||||
|
||||
}
|
||||
|
||||
return c.JSON(http.StatusInternalServerError, models.Message{"Could not get lists."})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user