added Team Presence Page

This commit is contained in:
2025-04-10 09:16:37 +02:00
parent 71e65e9b17
commit 65ea9c63e9
10 changed files with 236 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
package helper
import (
"context"
"net/http"
"os"
@@ -20,6 +21,7 @@ func SetCors(w http.ResponseWriter) {
}
func RequiresLogin(session *scs.SessionManager, w http.ResponseWriter, r *http.Request) {
r = r.WithContext(context.WithValue(r.Context(), "session", session))
if GetEnv("GO_ENV", "production") == "debug" {
return
}