Configure request app before custom middleware