summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-06-17 11:52:03 -0600
committermo khan <mo@mokhan.ca>2025-06-17 11:52:03 -0600
commit1396c4e251a2bf9eb8c8c22bd4bc25f847f38775 (patch)
treec6ae0cbc1e6f3ab464547914068e1416324d7a61 /pkg
parentc1606e1851c28160266a8f43cc77d22bf4a8913e (diff)
feat: create sts binary and run it
Diffstat (limited to 'pkg')
-rw-r--r--pkg/sts/sts.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/pkg/sts/sts.go b/pkg/sts/sts.go
new file mode 100644
index 0000000..ae75e8a
--- /dev/null
+++ b/pkg/sts/sts.go
@@ -0,0 +1,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)),
+ )
+}