This commit is contained in:
2025-06-16 19:25:43 -04:00
parent bde48cbe60
commit e64e676b14
2 changed files with 3 additions and 10 deletions

View File

@@ -23,7 +23,7 @@ namespace Astrocore.Api.Controllers
public async Task<IActionResult> Index(string message)
{
var client = _httpClientFactory.CreateClient();
var body = $"msg={Uri.EscapeDataString(message)}&lang=Gwyneth&source=ttsmp3";
var body = $"msg={Uri.EscapeDataString(message)}&lang=Geraint&source=ttsmp3";
var request = new HttpRequestMessage(HttpMethod.Post, "https://ttsmp3.com/makemp3_new.php")
{
Content = new StringContent(body, Encoding.UTF8, "application/x-www-form-urlencoded")

View File

@@ -16,18 +16,11 @@ namespace Astrocore.Api
var app = builder.Build();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}
app.UseHttpsRedirection();
app.UseAuthorization();
app.MapControllers();
app.Run();
}
}