(fixedUserId entity.Id)
| 7 | ) |
| 8 | |
| 9 | func Middleware(fixedUserId entity.Id) func(http.Handler) http.Handler { |
| 10 | return func(next http.Handler) http.Handler { |
| 11 | return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
| 12 | ctx := CtxWithUser(r.Context(), fixedUserId) |
| 13 | next.ServeHTTP(w, r.WithContext(ctx)) |
| 14 | }) |
| 15 | } |
| 16 | } |
no test coverage detected