use the new AtSessionHandler

This commit is contained in:
2024-09-14 15:55:45 +03:00
parent b53658e038
commit 3cb0b099e4
2 changed files with 94 additions and 1 deletions

View File

@@ -232,7 +232,7 @@ func main() {
rp := &atRequestParser{}
bsh := handlers.NewBaseSessionHandler(cfg, rs, stateStore, userdataStore, rp, hl)
sh := httpserver.ToSessionHandler(bsh, httpserver.WithAtOutput())
sh := httpserver.NewATSessionHandler(bsh)
s := &http.Server{
Addr: fmt.Sprintf("%s:%s", host, strconv.Itoa(int(port))),
Handler: sh,