File tree Expand file tree Collapse file tree
src/Services/Basket/Basket.API Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ public async Task<IActionResult> Post([FromBody]CustomerBasket value)
5050 return Ok ( basket ) ;
5151 }
5252
53+ [ Route ( "checkouts" ) ]
5354 [ HttpPost ]
5455 public async Task < IActionResult > Checkout ( )
5556 {
Original file line number Diff line number Diff line change 2121using System . Net ;
2222using System . Threading . Tasks ;
2323using System ;
24+ using Microsoft . eShopOnContainers . Services . Basket . API . Services ;
25+ using Microsoft . AspNetCore . Http ;
2426
2527namespace Microsoft . eShopOnContainers . Services . Basket . API
2628{
@@ -106,8 +108,9 @@ public void ConfigureServices(IServiceCollection services)
106108 . AllowAnyHeader ( )
107109 . AllowCredentials ( ) ) ;
108110 } ) ;
109-
111+ services . AddSingleton < IHttpContextAccessor , HttpContextAccessor > ( ) ;
110112 services . AddTransient < IBasketRepository , RedisBasketRepository > ( ) ;
113+ services . AddTransient < IIdentityService , IdentityService > ( ) ;
111114 RegisterServiceBus ( services ) ;
112115 }
113116
You can’t perform that action at this time.
0 commit comments