UPDATED
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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.UseSwagger();
|
||||
app.UseSwaggerUI();
|
||||
app.UseHttpsRedirection();
|
||||
app.UseAuthorization();
|
||||
|
||||
app.MapControllers();
|
||||
|
||||
app.Run();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user