Codehaks.Middlewares 1.0.0

Useful middlewares

Install-Package Codehaks.Middlewares -Version 1.0.0
dotnet add package Codehaks.Middlewares --version 1.0.0
<PackageReference Include="Codehaks.Middlewares" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Codehaks.Middlewares --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

1- Send back a file from any path

app.UseSendFile(@"filePath")

2- Include any folder as staticFiles folder

app.UseStaticFilesFromPath(env.ContentRootPath + @"\public");

1- Send back a file from any path

app.UseSendFile(@"filePath")

2- Include any folder as staticFiles folder

app.UseStaticFilesFromPath(env.ContentRootPath + @"\public");

Release Notes

StaticFiles Extention

GitHub repositories (0)

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 359 5/30/2018