Remove extra middleware from api app