12 lines
330 B
Go
12 lines
330 B
Go
package web
|
|
|
|
import "net/http"
|
|
|
|
// AuthMiddleware is a placeholder seam for future authentication. For now it
|
|
// is a pass-through that invokes the wrapped handler unchanged.
|
|
func AuthMiddleware(next http.Handler) http.Handler {
|
|
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
next.ServeHTTP(w, r)
|
|
})
|
|
}
|