You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

35 lines
687 B

using Microsoft.AspNetCore.Mvc;
namespace Microsoft.eShopOnDapr.Services.Basket.API.Controllers;
[Route("api/v1/[controller]")]
[ApiController]
public class BasketController : ControllerBase
{
private readonly ILogger<BasketController> _logger;
public BasketController(
ILogger<BasketController> logger)
{
_logger = logger;
}
[HttpGet]
public async Task<string> GetBasketAsync()
{
await Task.CompletedTask;
return "123";
}
[HttpGet("aa")]
public string GetTBasketAsync()
{
return "123";
}
[HttpGet("bb")]
public string GetEBasketAsync()
{
throw new Exception();
}
}