[#137] Add index page support
All checks were successful
/ DCO (pull_request) Successful in 56s
/ Builds (pull_request) Successful in 54s
/ Vulncheck (pull_request) Successful in 1m20s
/ Lint (pull_request) Successful in 2m11s
/ Tests (pull_request) Successful in 1m4s

Signed-off-by: Nikita Zinkevich <n.zinkevich@yadro.com>
This commit is contained in:
Nikita Zinkevich 2024-09-20 15:09:44 +03:00
parent 843708a558
commit 26b36e442c
17 changed files with 704 additions and 87 deletions

View file

@ -52,8 +52,8 @@ func BearerTokenFromCookie(h *fasthttp.RequestHeader) []byte {
// StoreBearerTokenAppCtx extracts a bearer token from the header or cookie and stores
// it in the application context.
func StoreBearerTokenAppCtx(ctx context.Context, req *fasthttp.RequestCtx) (context.Context, error) {
tkn, err := fetchBearerToken(req)
func StoreBearerTokenAppCtx(ctx context.Context, c *fasthttp.RequestCtx) (context.Context, error) {
tkn, err := fetchBearerToken(c)
if err != nil {
return nil, err
}