I try to get custom-extension static files from my web-server (asp.net core 2.0).
I try to run next:
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
public void ConfigureServices(IServiceCollection services)
{
services.AddDirectoryBrowser(); // just to see that I have this files
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
app.UseStaticFiles();
app.UseDirectoryBrowser();
}
}
So, I can see my files at folders but I can't get it - it throw 404:
And when I click on it: nothing happened and I got 404.

Updated for Evk:
I added static_json.json file to static files at src folder and it get it as expected:

Thank you for any help in advance!