ticket:3 Middleware ready and working