Move middleware to separate file
Basic auth