14 lines
253 B
Go
14 lines
253 B
Go
package middlewares
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
func AuthMiddleware(next http.Handler) http.Handler {
|
|
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
// Authentication logic here
|
|
next.ServeHTTP(w, r)
|
|
})
|
|
}
|
|
|