title: Get UseStaticFiles() to point http://example.com/myfile to /wwwroot/myfile.{environment}.js
body: <p>I want to be able to change the url to a static file in my wwwroot without changing the filename. F.ex I want to be able to go to www.mysite.com/myfile and it would get the randomotherfile.js in the wwwroot.</p>
  
  <p>Basicly this is an example of what I want to be able to do, but the physicalfileprovider only takes directories.</p>
  
  <pre><code>app.UseStaticFiles(new StaticFileOptions()
          {
              FileProvider = new PhysicalFileProvider(
         Path.Combine(Directory.GetCurrentDirectory(), @"wwwroot", $"myfile.{env.EnvironmentName}.js")),
              RequestPath = new PathString("/superfile") 
          });
  </code></pre>
  
  <p>in this case www.mysite.com/superfile would get me f.ex myfile.test.js.</p>
  
  <p>Using .net core 1.1</p>