|
@@ -104,6 +104,11 @@ namespace IES.ExamServer
|
|
|
contentTypeProvider.Mappings[".mp3"] = "audio/mpeg";
|
|
|
contentTypeProvider.Mappings[".json"] = "application/json";
|
|
|
contentTypeProvider.Mappings[".pdf"] = "application/pdf";
|
|
|
+ string packagePath = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "package");
|
|
|
+ if (!Directory.Exists(packagePath))
|
|
|
+ {
|
|
|
+ Directory.CreateDirectory(packagePath);
|
|
|
+ }
|
|
|
app.UseStaticFiles(new StaticFileOptions
|
|
|
{
|
|
|
FileProvider = new PhysicalFileProvider(
|