Skip to content

Commit

Permalink
fix some issue
Browse files Browse the repository at this point in the history
Signed-off-by: yxxhero <aiopsclub@163.com>
  • Loading branch information
yxxhero authored and gaius-qi committed Aug 31, 2021
1 parent 2a77eb0 commit 3ac5a36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manager/model/settings.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package model

type Settings struct {
ID uint `gorm:"primarykey;comment:id" json:"id"`
Model
Key string `gorm:"column:key;type:varchar(256);index:uk_settings_key,unique;not null;comment:setting key" json:"key"`
Value string `gorm:"column:value;type:varchar(256);not null;comment:setting value" json:"value"`
}
4 changes: 2 additions & 2 deletions manager/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ func Init(console bool, verbose bool, publicPath string, service service.REST, e
oa.DELETE("/:id", h.DestroyOauth)
oa.PUT("/:id", h.UpdateOauth)
oa.POST("", h.CreateOauth)
oa.GET("/:oauth_name/signin", h.OauthSignin)
oa.GET("/:oauth_name/callback", h.OauthCallback(jwt))
oa.GET("/signin/:oauth_name", h.OauthSignin)
oa.GET("/callback/:oauth_name", h.OauthCallback(jwt))

// Security Group
sg := apiv1.Group("/security-groups")
Expand Down

0 comments on commit 3ac5a36

Please # to comment.