have AtOutput as an option

This commit is contained in:
2024-09-13 16:03:31 +03:00
parent 512460fdeb
commit b53658e038
2 changed files with 26 additions and 6 deletions

View File

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