an express routing middleware for swagger 2