mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
24 lines
916 B
C#
24 lines
916 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Microsoft.AspNetCore.SpaServices.StaticFiles
|
|
{
|
|
/// <summary>
|
|
/// Represents options for serving static files for a Single Page Application (SPA).
|
|
/// </summary>
|
|
public class SpaStaticFilesOptions
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the path, relative to the application root, of the directory in which
|
|
/// the physical files are located.
|
|
///
|
|
/// If the specified directory does not exist, then the
|
|
/// <see cref="SpaStaticFilesExtensions.UseSpaStaticFiles(Builder.IApplicationBuilder)"/>
|
|
/// middleware will not serve any static files.
|
|
/// </summary>
|
|
public string RootPath { get; set; }
|
|
}
|
|
}
|