From baeada0a9ab5e4045d7af166a6fa61ff56e5181b Mon Sep 17 00:00:00 2001 From: "hualin.zhu" Date: Sat, 23 Nov 2024 12:45:26 +0800 Subject: [PATCH] create files directory --- src/CleanAspire.Api/CleanAspire.Api.csproj | 3 --- src/CleanAspire.Api/CleanAspire.Api.json | 4 ++-- src/CleanAspire.Api/Program.cs | 2 ++ 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/CleanAspire.Api/CleanAspire.Api.csproj b/src/CleanAspire.Api/CleanAspire.Api.csproj index 0a8dbfd..6bac079 100644 --- a/src/CleanAspire.Api/CleanAspire.Api.csproj +++ b/src/CleanAspire.Api/CleanAspire.Api.csproj @@ -27,8 +27,5 @@ - - - diff --git a/src/CleanAspire.Api/CleanAspire.Api.json b/src/CleanAspire.Api/CleanAspire.Api.json index a5401e7..39b073e 100644 --- a/src/CleanAspire.Api/CleanAspire.Api.json +++ b/src/CleanAspire.Api/CleanAspire.Api.json @@ -833,7 +833,7 @@ } }, "example": { - "email": "Bertha.Kuvalis@yahoo.com", + "email": "Elias69@hotmail.com", "password": "P@ssw0rd!" } }, @@ -920,7 +920,7 @@ } }, "example": { - "Email": "Marcos19@yahoo.com", + "Email": "Nathen_Konopelski60@hotmail.com", "Password": "P@ssw0rd!", "Nickname": "exampleNickname", "Provider": "Local", diff --git a/src/CleanAspire.Api/Program.cs b/src/CleanAspire.Api/Program.cs index d11285b..086bfc2 100644 --- a/src/CleanAspire.Api/Program.cs +++ b/src/CleanAspire.Api/Program.cs @@ -118,6 +118,8 @@ app.MapOpenApi(); app.MapScalarApiReference(); } +if (!Directory.Exists(Path.Combine(Directory.GetCurrentDirectory(), @"files"))) + Directory.CreateDirectory(Path.Combine(Directory.GetCurrentDirectory(), @"files")); app.UseStaticFiles(new StaticFileOptions { FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), @"files")),