Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharsanan1 committed Oct 27, 2023
1 parent 5f7a0f3 commit ba9d2cc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions common-controller/internal/web/notify_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,15 @@ func init() {
authKeyHeader = conf.CommonController.Sts.AuthKeyHeader
}

// RevokeHandler handles the token revocation requests
// NotifyHandler handles notify requests
func NotifyHandler(c *gin.Context) {
_type := c.Query("type")
if _type == tokenRevocationType {
revokeToken(c)
return
} else {
c.JSON(http.StatusBadRequest, gin.H{"error": "Invalid type"})
return
}
}
c.JSON(http.StatusBadRequest, gin.H{"error": "Invalid type"})
return
}

func revokeToken(c *gin.Context) {
Expand Down

0 comments on commit ba9d2cc

Please sign in to comment.