Skip to content

Commit c079e0d

Browse files
author
Bart Koelman
committed
Fixed broken reports example
1 parent fdebb81 commit c079e0d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Examples/ReportsExample/Controllers/ReportsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace 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,

src/Examples/ReportsExample/Startup.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)