fixed redirect on post create watch
This commit is contained in:
parent
c7134f68b2
commit
a18651b4e0
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -184,7 +184,7 @@ func (web *Web) watchCreatePost(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
web.db.Create(&watch)
|
||||
c.Redirect(http.StatusSeeOther, fmt.Sprintf("/watch/%d", watch.ID))
|
||||
c.Redirect(http.StatusSeeOther, fmt.Sprintf("/watch/edit/%d", watch.ID))
|
||||
}
|
||||
|
||||
func (web *Web) deleteWatch(c *gin.Context) {
|
||||
|
|
Loading…
Add table
Reference in a new issue