This commit is contained in:
laodaming
2023-08-15 12:34:41 +08:00
parent 3ce253b1e5
commit edf89ea301
34 changed files with 17 additions and 20 deletions

View File

@@ -23,7 +23,7 @@ func main() {
var c config.Config
conf.MustLoad(*configFile, &c)
c.Timeout = int64(time.Second * 15)
server := rest.MustNewServer(c.RestConf, rest.WithCustomCors(auth.FsCors, func(w http.ResponseWriter) {
}))
defer server.Stop()