🎉 init
This commit is contained in:
19
app/auth/internal/middleware/i18n_middleware.go
Normal file
19
app/auth/internal/middleware/i18n_middleware.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package middleware
|
||||
|
||||
import "net/http"
|
||||
|
||||
type I18nMiddleware struct {
|
||||
}
|
||||
|
||||
func NewI18nMiddleware() *I18nMiddleware {
|
||||
return &I18nMiddleware{}
|
||||
}
|
||||
|
||||
func (m *I18nMiddleware) 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)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user