summaryrefslogtreecommitdiff
path: root/pkg/app/app.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/app/app.go')
-rw-r--r--pkg/app/app.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/pkg/app/app.go b/pkg/app/app.go
deleted file mode 100644
index 89a2bd34..00000000
--- a/pkg/app/app.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package app
-
-import (
- "os"
-
- "github.com/xlgmokha/x/pkg/log"
- "gitlab.com/mokhax/spike/pkg/authz"
- "gitlab.com/mokhax/spike/pkg/cfg"
- "gitlab.com/mokhax/spike/pkg/srv"
-)
-
-func Start(bindAddr string) error {
- logger := log.New(os.Stdout, log.Fields{"app": "gtwy"})
- mux := authz.HTTP(authz.WithCasbin(), Routes())
- return srv.Run(cfg.New(
- bindAddr,
- cfg.WithMux(log.HTTP(logger)(mux)),
- cfg.WithTLS([]string{
- "api.example.com",
- "authzd.example.com",
- "idp.example.com",
- "ui.example.com",
- }),
- ))
-}