blob: c58d1baa08660daa69a24b19b2df2818a458d677 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package main
import (
"context"
"net/http"
"os"
"github.com/xlgmokha/x/pkg/env"
"github.com/xlgmokha/x/pkg/x"
"gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/app"
"gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/pls"
)
func main() {
pls.LogErrorNow(context.Background(), http.ListenAndServe(
env.Fetch("BIND_ADDR", ":8080"),
app.New(x.Must(os.Getwd())),
))
}
|