This method gets called by the runtime. Use this method to add services to the container.
(IServiceCollection services)
| 19 | |
| 20 | // This method gets called by the runtime. Use this method to add services to the container. |
| 21 | public void ConfigureServices(IServiceCollection services) |
| 22 | { |
| 23 | |
| 24 | services.AddControllersWithViews(); |
| 25 | |
| 26 | // In production, the React files will be served from this directory |
| 27 | services.AddSpaStaticFiles(configuration => |
| 28 | { |
| 29 | configuration.RootPath = "ClientApp/build"; |
| 30 | }); |
| 31 | } |
| 32 | |
| 33 | // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. |
| 34 | public void Configure(IApplicationBuilder app, IWebHostEnvironment env) |
nothing calls this directly
no outgoing calls
no test coverage detected