Add post request type to middlewares.