Skip to content

Commit

Permalink
feat: field validation for weblink.
Browse files Browse the repository at this point in the history
  • Loading branch information
puni9869 committed Nov 8, 2024
1 parent a269d37 commit c77669f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/home/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func AddWeblink(c *gin.Context) {
session := sessions.Default(c)
currentlyLoggedIn := session.Get(middlewares.Userkey)

// Handle the error for url validation
// Handle the error for url validation like form validator
err := c.ShouldBind(&requestBody)
if err != nil {
log.WithError(err).Error("Bad request body")
Expand Down

0 comments on commit c77669f

Please sign in to comment.