Allow fn to be passed which is not an express app.