feat: add auth to swagerr add middleware for check admin
This commit is contained in:
@@ -10,6 +10,10 @@ import (
|
||||
ginSwagger "github.com/swaggo/gin-swagger"
|
||||
)
|
||||
|
||||
// @securityDefinitions.apikey Bearer
|
||||
// @in header
|
||||
// @name Authorization
|
||||
// @description Type "Bearer" followed by a space and the JWT token.
|
||||
func main() {
|
||||
log := logger.New(false)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user