Skip to content

Commit

Permalink
WebAPI - add UseDefaultFiles in middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahzaib Mirani committed Jul 12, 2024
1 parent 804b726 commit 14e6ba8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions core-and-webapi/Sylvre.WebAPI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
app.UseDeveloperExceptionPage();
}

app.UseDefaultFiles();
app.UseStaticFiles();
app.UseSwagger(c =>
{
Expand Down
6 changes: 3 additions & 3 deletions core-and-webapi/Sylvre.WebAPI/Sylvre.WebAPI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
<UserSecretsId>07ceb5c6-6942-4ebb-a2a2-8343ac11e365</UserSecretsId>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<AssemblyVersion>1.5.0</AssemblyVersion>
<FileVersion>1.5.0</FileVersion>
<Version>1.5.0</Version>
<AssemblyVersion>1.5.1</AssemblyVersion>
<FileVersion>1.5.1</FileVersion>
<Version>1.5.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 14e6ba8

Please sign in to comment.