Abort if invalid token/data and wrap some errors
This commit is contained in:
@ -19,6 +19,7 @@ func (h *Handler) getImportantData(c *gin.Context) {
|
||||
budgetUUID, err := uuid.Parse(budgetID)
|
||||
if err != nil {
|
||||
c.Redirect(http.StatusTemporaryRedirect, "/login")
|
||||
c.Abort()
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user