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 9
9
namespace ReportsExample . Controllers
10
10
{
11
11
[ Route ( "api/[controller]" ) ]
12
- public class ReportsController : BaseJsonApiController < Report , int >
12
+ public class ReportsController : BaseJsonApiController < Report >
13
13
{
14
14
public ReportsController (
15
15
IJsonApiOptions jsonApiOptions ,
Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ public void ConfigureServices(IServiceCollection services)
17
17
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
18
18
public void Configure ( IApplicationBuilder app )
19
19
{
20
+ app . UseRouting ( ) ;
20
21
app . UseJsonApi ( ) ;
22
+ app . UseEndpoints ( endpoints => endpoints . MapControllers ( ) ) ;
21
23
}
22
24
}
23
25
}
You can’t perform that action at this time.
0 commit comments