summaryrefslogtreecommitdiff
path: root/pkg/sts/sts.go
blob: ae75e8a71b434d7edb1060040820f0090e64ea46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package sts

import (
	"context"
	"net/http"

	"github.com/xlgmokha/x/pkg/log"
	"github.com/xlgmokha/x/pkg/x"
)

func New(ctx context.Context) http.Handler {
	return x.Middleware[http.Handler](
		http.NewServeMux(),
		log.HTTP(log.From(ctx)),
	)
}