Skip to content

Commit

Permalink
create files directory
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhu committed Nov 23, 2024
1 parent 0d26c77 commit baeada0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/CleanAspire.Api/CleanAspire.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,5 @@
<ProjectReference Include="..\Migrators\Migrators.SQLite\Migrators.SQLite.csproj" />

</ItemGroup>
<ItemGroup>
<Folder Include="files\" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions src/CleanAspire.Api/CleanAspire.Api.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@
}
},
"example": {
"email": "Bertha.Kuvalis@yahoo.com",
"email": "Elias69@hotmail.com",
"password": "P@ssw0rd!"
}
},
Expand Down Expand Up @@ -920,7 +920,7 @@
}
},
"example": {
"Email": "Marcos19@yahoo.com",
"Email": "Nathen_Konopelski60@hotmail.com",
"Password": "P@ssw0rd!",
"Nickname": "exampleNickname",
"Provider": "Local",
Expand Down
2 changes: 2 additions & 0 deletions src/CleanAspire.Api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
Expand Down

0 comments on commit baeada0

Please sign in to comment.