Add a template for Express middleware