I have a JSON file and want to view it directly in the web browser. when I attempt to access the file via its route it returns 404.
How can I view the JSON file?
wwwroot
Set the UseStaticFiles variable in your SetUp file
public void Configure(IApplicationBuilder app) { app.UseStaticFiles(); }
Referene Here