From d7d727e02dad57679242e93c3f088c20e4a5ea38 Mon Sep 17 00:00:00 2001 From: Zaptoss Date: Tue, 24 Sep 2024 13:49:30 +0300 Subject: [PATCH] Abstraction account support --- internal/service/handlers/ctx.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/service/handlers/ctx.go b/internal/service/handlers/ctx.go index a5b1d96..0ccff85 100644 --- a/internal/service/handlers/ctx.go +++ b/internal/service/handlers/ctx.go @@ -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) }