feat: SSE bs into room
This commit is contained in:
@@ -18,7 +18,11 @@ func indexPageRoute(
|
||||
) http.HandlerFunc {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
var templFile = "templates/index.gohtml"
|
||||
session := getContextSession(r.Context())
|
||||
session, found := getContextSession(r.Context())
|
||||
if !found {
|
||||
log.Printf("/ session not found, should be impossible")
|
||||
// TODO return error i guess
|
||||
}
|
||||
data := struct {
|
||||
SessionStringToken string
|
||||
SomeString string
|
||||
|
||||
Reference in New Issue
Block a user