mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
839 B
34 lines
839 B
using System;
|
|
|
|
namespace Volo.Docs
|
|
{
|
|
public class DocsUiOptions
|
|
{
|
|
private string _routePrefix = "documents";
|
|
|
|
/// <summary>
|
|
/// Default value: "documents";
|
|
/// </summary>
|
|
public string RoutePrefix
|
|
{
|
|
get => GetFormattedRoutePrefix();
|
|
set => _routePrefix = value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Allows user to see a combobox in user interface for swapping across projects
|
|
/// Default value: True;
|
|
/// </summary>
|
|
public bool ShowProjectsCombobox = true;
|
|
|
|
private string GetFormattedRoutePrefix()
|
|
{
|
|
if (string.IsNullOrWhiteSpace(_routePrefix))
|
|
{
|
|
return "/";
|
|
}
|
|
|
|
return _routePrefix.EnsureEndsWith('/').EnsureStartsWith('/');
|
|
}
|
|
}
|
|
}
|
|
|