test call
This commit is contained in:
@@ -1 +1 @@
|
||||
TY09192530212#ghback.nabaksoft.ir/calltest.amr
|
||||
TY09192530212#https://ghback.nabaksoft.ir/My_StaticFiles/output.amr
|
||||
@@ -4,6 +4,7 @@ using GreenHome.Application;
|
||||
using GreenHome.Infrastructure;
|
||||
using GreenHome.Sms.Ippanel;
|
||||
using GreenHome.VoiceCall.Avanak;
|
||||
using Microsoft.AspNetCore.StaticFiles;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.FileProviders;
|
||||
using Scalar.AspNetCore;
|
||||
@@ -107,11 +108,15 @@ if (!app.Environment.IsDevelopment())
|
||||
app.UseCors(CorsPolicy);
|
||||
app.UseAuthorization();
|
||||
|
||||
var provider = new FileExtensionContentTypeProvider();
|
||||
provider.Mappings[".amr"] = "audio/amr";
|
||||
|
||||
app.UseStaticFiles(new StaticFileOptions
|
||||
{
|
||||
FileProvider = new PhysicalFileProvider(
|
||||
Path.Combine(builder.Environment.ContentRootPath, "My_StaticFiles")),
|
||||
RequestPath = "/My_StaticFiles"
|
||||
RequestPath = "/My_StaticFiles",
|
||||
ContentTypeProvider = provider
|
||||
});
|
||||
|
||||
app.MapControllers();
|
||||
|
||||
Reference in New Issue
Block a user