Maintenance middleware for the Slim framework