MCPcopy
hub / github.com/OWASP/Go-SCP / main

Function main

src/session-management/session.go:122–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120}
121
122func main() {
123 http.HandleFunc("/", validate(protectedProfile))
124 http.HandleFunc("/login", setToken)
125 http.HandleFunc("/profile", validate(protectedProfile))
126 http.HandleFunc("/logout", validate(logout))
127 err := http.ListenAndServeTLS(":443", "cert/cert.pem", "cert/key.pem", nil)
128 if err != nil {
129 log.Fatal("ListenAndServe: ", err)
130 }
131}

Callers

nothing calls this directly

Calls 1

validateFunction · 0.70

Tested by

no test coverage detected