Initial setup
This commit is contained in:
13
internal/middlewares/auth_middleware.go
Normal file
13
internal/middlewares/auth_middleware.go
Normal file
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user