This commit is contained in:
2025-10-25 08:18:18 +08:00
parent ec80aa92fa
commit 6b0a88ed4c
4 changed files with 59 additions and 23 deletions

View File

@@ -0,0 +1,24 @@
package middleware
import (
"net/http"
"git.cialloo.com/CiallooWeb/Blog/app/internal/config"
)
type SuperAdminAuthMiddleware struct {
Config config.Config
}
func NewSuperAdminAuthMiddleware(c config.Config) *SuperAdminAuthMiddleware {
return &SuperAdminAuthMiddleware{Config: c}
}
func (m *SuperAdminAuthMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
// TODO generate middleware implement function, delete after code implementation
// Passthrough to next handler if need
next(w, r)
}
}