Fix template creation API returning incorrect response
This commit is contained in:
parent
d9197668c6
commit
2587d67765
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ func handleCreateTemplate(c echo.Context) error {
|
|||
// Hand over to the GET handler to return the last insertion.
|
||||
c.SetParamNames("id")
|
||||
c.SetParamValues(fmt.Sprintf("%d", newID))
|
||||
return c.JSON(http.StatusOK, handleGetLists(c))
|
||||
return handleGetTemplates(c)
|
||||
}
|
||||
|
||||
// handleUpdateTemplate handles template modification.
|
||||
|
|
Loading…
Reference in a new issue