Add get middleware