UPDATED
This commit is contained in:
@@ -23,7 +23,7 @@ namespace Astrocore.Api.Controllers
|
|||||||
public async Task<IActionResult> Index(string message)
|
public async Task<IActionResult> Index(string message)
|
||||||
{
|
{
|
||||||
var client = _httpClientFactory.CreateClient();
|
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")
|
var request = new HttpRequestMessage(HttpMethod.Post, "https://ttsmp3.com/makemp3_new.php")
|
||||||
{
|
{
|
||||||
Content = new StringContent(body, Encoding.UTF8, "application/x-www-form-urlencoded")
|
Content = new StringContent(body, Encoding.UTF8, "application/x-www-form-urlencoded")
|
||||||
|
|||||||
@@ -16,18 +16,11 @@ namespace Astrocore.Api
|
|||||||
|
|
||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
|
|
||||||
// Configure the HTTP request pipeline.
|
|
||||||
if (app.Environment.IsDevelopment())
|
|
||||||
{
|
|
||||||
app.UseSwagger();
|
app.UseSwagger();
|
||||||
app.UseSwaggerUI();
|
app.UseSwaggerUI();
|
||||||
}
|
|
||||||
|
|
||||||
app.UseHttpsRedirection();
|
app.UseHttpsRedirection();
|
||||||
app.UseAuthorization();
|
app.UseAuthorization();
|
||||||
|
|
||||||
app.MapControllers();
|
app.MapControllers();
|
||||||
|
|
||||||
app.Run();
|
app.Run();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user