11 lines
180 B
Go
11 lines
180 B
Go
package middlewares
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
func AuthMiddleware() gin.HandlerFunc {
|
|
return func(c *gin.Context) {
|
|
// 1. Get the Authorization header
|
|
c.Next()
|
|
}
|
|
}
|