File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/Examples/ReportsExample Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 99namespace ReportsExample . Controllers
1010{
1111 [ Route ( "api/[controller]" ) ]
12- public class ReportsController : BaseJsonApiController < Report , int >
12+ public class ReportsController : BaseJsonApiController < Report >
1313 {
1414 public ReportsController (
1515 IJsonApiOptions jsonApiOptions ,
Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ public void ConfigureServices(IServiceCollection services)
1717 // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
1818 public void Configure ( IApplicationBuilder app )
1919 {
20+ app . UseRouting ( ) ;
2021 app . UseJsonApi ( ) ;
22+ app . UseEndpoints ( endpoints => endpoints . MapControllers ( ) ) ;
2123 }
2224 }
2325}
You can’t perform that action at this time.
0 commit comments