Add get middleware

middlewares