Allow file contents to be returned instead of middleware