SpaStaticFilesExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extension methods for configuring an application to serve static files for a Single Page Application (SPA).
public static class SpaStaticFilesExtensions
type SpaStaticFilesExtensions = class
Public Module SpaStaticFilesExtensions
- Inheritance
-
SpaStaticFilesExtensions
Methods
AddSpaStaticFiles(IServiceCollection, Action<SpaStaticFilesOptions>) |
Registers an ISpaStaticFileProvider service that can provide static files to be served for a Single Page Application (SPA). |
UseSpaStaticFiles(IApplicationBuilder) |
Configures the application to serve static files for a Single Page Application (SPA). The files will be located using the registered ISpaStaticFileProvider service. |
UseSpaStaticFiles(IApplicationBuilder, StaticFileOptions) |
Configures the application to serve static files for a Single Page Application (SPA). The files will be located using the registered ISpaStaticFileProvider service. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for