11using Microsoft . AspNetCore . Builder ;
22using Microsoft . AspNetCore . Mvc ;
3+ using Microsoft . AspNetCore . Routing ;
34using System . ComponentModel . DataAnnotations ;
45using System . Reflection ;
56
@@ -10,7 +11,7 @@ internal class MapApiExtensions
1011
1112 // TODO: Authentication / Authorization
1213
13- internal static void MapInstantGetAll < D , C > ( WebApplication app , string url )
14+ internal static void MapInstantGetAll < D , C > ( IEndpointRouteBuilder app , string url )
1415 where D : DbContext where C : class
1516 {
1617
@@ -21,7 +22,7 @@ internal static void MapInstantGetAll<D, C>(WebApplication app, string url)
2122
2223 }
2324
24- internal static void MapGetById < D , C > ( WebApplication app , string url )
25+ internal static void MapGetById < D , C > ( IEndpointRouteBuilder app , string url )
2526 where D : DbContext where C : class
2627 {
2728
@@ -48,7 +49,7 @@ internal static void MapGetById<D,C>(WebApplication app, string url)
4849
4950 }
5051
51- internal static void MapInstantPost < D , C > ( WebApplication app , string url )
52+ internal static void MapInstantPost < D , C > ( IEndpointRouteBuilder app , string url )
5253 where D : DbContext where C : class
5354 {
5455
@@ -61,7 +62,7 @@ internal static void MapInstantPost<D, C>(WebApplication app, string url)
6162
6263 }
6364
64- internal static void MapInstantPut < D , C > ( WebApplication app , string url )
65+ internal static void MapInstantPut < D , C > ( IEndpointRouteBuilder app , string url )
6566 where D : DbContext where C : class
6667 {
6768
@@ -75,7 +76,7 @@ internal static void MapInstantPut<D, C>(WebApplication app, string url)
7576
7677 }
7778
78- internal static void MapDeleteById < D , C > ( WebApplication app , string url )
79+ internal static void MapDeleteById < D , C > ( IEndpointRouteBuilder app , string url )
7980 where D : DbContext where C : class
8081 {
8182
0 commit comments