func IsAuthenticated(h http.HandlerFunc) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		if r.Header.Get("Authorization") == getAuthToken() {
			h.ServeHTTP(w, r)
		} else {
			w.Header().Set("Content-Type", "application/json; charset=utf-8")
			w.WriteHeader(http.StatusUnauthorized)
		}
	}
}
// IsAuthenticated checks for a correct bearer token
IsAuthenticated checks for a correct bearer token
// IsAuthenticated checks for a correct bearer token
func IsAuthenticated(h http.HandlerFunc) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		if r.Header.Get("Authorization") == getAuthToken() {
			h.ServeHTTP(w, r)
		} else {
			w.Header().Set("Content-Type", "application/json; charset=utf-8")
			w.WriteHeader(http.StatusUnauthorized)
		}
	}
}
func IsAuthenticated ( h http . HandlerFunc ) http . HandlerFunc { return func ( w http . ResponseWriter , r * http . Request ) { if r . Header . Get ( " " ) == getAuthToken ( ) { h . ServeHTTP ( w , r ) } else { w . Header ( ) . Set ( " " , " " ) w . WriteHeader ( http . StatusUnauthorized ) } } }
IsAuthenticated checks for a correct bearer token
IsAuthenticated checks for a correct bearer token