add files for Authorization middlewaries Admin and User
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package prf
|
||||
|
||||
import "net/http"
|
||||
|
||||
func AuthUserMiddleware(next http.Handler) http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(http.StatusUnauthorized)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user