Base Project
This commit is contained in:
10
internal/middlewares/auth_middleware.go
Normal file
10
internal/middlewares/auth_middleware.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package middlewares
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
func AuthMiddleware() gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
// 1. Get the Authorization header
|
||||
c.Next()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user