Skip to content

Commit

Permalink
Abstraction account support
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaptoss committed Sep 27, 2024
1 parent d7e3064 commit d7d727e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/service/handlers/ctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ func CtxAbstraction(abstraction *config.AbstractionConfig) func(context.Context)
return context.WithValue(ctx, abstractionCtxKey, abstraction)
}
}

func Abstraction(r *http.Request) *config.AbstractionConfig {
return r.Context().Value(abstractionCtxKey).(*config.AbstractionConfig)
}

0 comments on commit d7d727e

Please sign in to comment.