Skip to content

Provide an AddStaticFiles extension method on IServiceCollection #2879

Closed
@javiercn

Description

@javiercn

This method will configure the default configuration options for static files and allow libraries avoid having to replicate the logic to set the default options. See https://github.com/aspnet/Identity/blob/dev/src/UI/IdentityDefaultUIConfigureOptions.cs#L52-L62

To be very clear, this is not about requiring a method call to services.AddStaticFiles() to use StaticFiles but to allow other libraries to call it in order to ensure that the options were initialized correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-middlewareIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewaresfeature-static-files

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions