blob: 22fedcb7c60f4a0b813c9a628eb6070b1bbde433 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package app
import (
"gitlab.com/mokhax/spike/pkg/authz"
"gitlab.com/mokhax/spike/pkg/cfg"
"gitlab.com/mokhax/spike/pkg/srv"
)
func Start(bindAddr string) error {
mux := authz.HTTP(authz.WithCedar(), Routes())
return srv.Run(cfg.New(
bindAddr,
cfg.WithMux(mux),
))
}
|