We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 389851e commit 8326629Copy full SHA for 8326629
middleware.go
@@ -6,6 +6,8 @@ import (
6
"github.com/golang/glog"
7
)
8
9
+// Handler returns a standard http.HandlerFunc, which will check the authenticated status (redirect user go login if needed)
10
+// If the user pass the authenticated check, it will call the h's ServeHTTP method
11
func (c *Client) Handler(h http.Handler) http.Handler {
12
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
13
if glog.V(2) {
0 commit comments