15 lines
349 B
C#
15 lines
349 B
C#
|
|
|
||
|
|
using Microsoft.AspNetCore.Builder;
|
||
|
|
using Microsoft.Extensions.Configuration;
|
||
|
|
|
||
|
|
namespace Yavsc.Server.Helpers;
|
||
|
|
|
||
|
|
public static class ConfigurationHelpers
|
||
|
|
|
||
|
|
{
|
||
|
|
public static string GetAuthority(this WebApplicationBuilder builder)
|
||
|
|
{
|
||
|
|
return builder.Configuration.GetSection("Site")
|
||
|
|
.GetValue<string>("Authority");
|
||
|
|
}
|
||
|
|
}
|