fix some issue
Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
parent
7f46ba5e90
commit
14b5d5db22
|
|
@ -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"`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue