allowed origins moved to env
This commit is contained in:
parent
e3f893ac2d
commit
05ed7dc868
4 changed files with 24 additions and 17 deletions
|
|
@ -52,9 +52,10 @@ func main() {
|
|||
|
||||
//deps providers
|
||||
routerHandler := router.NewRouter(router.Deps{
|
||||
ApiPrefix: c.AppConf.ApiPrefix,
|
||||
GinMode: c.AppConf.GinMode,
|
||||
TokenProv: jwtProvider,
|
||||
ApiPrefix: c.AppConf.ApiPrefix,
|
||||
GinMode: c.AppConf.GinMode,
|
||||
TokenProv: jwtProvider,
|
||||
AllowedOrigins: c.AppConf.AllowedOrigins,
|
||||
})
|
||||
log.Debug("Router handler initialized")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue