1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-28 13:15:12 +01:00
This commit is contained in:
Jonas Hendrickx 2024-10-10 10:59:31 +02:00
parent 7691159e68
commit 824049ea45

View File

@ -6,14 +6,14 @@ using Microsoft.AspNetCore.Mvc;
namespace Bit.Api.Billing.Controllers;
[Route("billing")]
[Route("tax")]
[Authorize("Application")]
public class BillingController(
public class TaxController(
IStripeAdapter stripeAdapter) : Controller
{
[HttpPost]
[Route("calculate-tax")]
public async Task<IResult> CalculateTaxAsync([FromBody] CalculateTaxRequestModel requestBody)
[Route("calculate")]
public async Task<IResult> CalculateAsync([FromBody] CalculateTaxRequestModel requestBody)
{
var options = new Stripe.Tax.CalculationCreateOptions
{