func (u *UserResource) Register(usergroup *gin.RouterGroup) { usergroup.OPTIONS("login") usergroup.GET("login", u.login) usergroup.GET("find/:user-id", u.findUser) usergroup.PUT("update/:user-id", u.updateUser) usergroup.DELETE("remove/:user-id", u.removeUser) }