* Rename information endpoint to troubleshooting * Rename information endpoint to troubleshooting * Add new information endpoint * Fix bad merge * Add InformationServerController.cs back * Update serverTime offset to non hard-coded value. * Add dictionary to swagger models * Update OpenApi.json file * Rename map definition * Add ServerConfigurationBaseModel * Implement ServerConfigurationBaseModel.cs * Updated OpenApi * Updated endpoint to return correct type in openapi * Use explicit class for server information * Remove version endpoint, as that is contained in server information. --------- Co-authored-by: Bjarke Berg <mail@bergmania.dk>
12 lines
400 B
C#
12 lines
400 B
C#
using Umbraco.Cms.Core.Configuration.Models;
|
|
using Umbraco.Cms.Core.Semver;
|
|
|
|
namespace Umbraco.Cms.Core.Models;
|
|
|
|
public class ServerInformation(SemVersion semVersion, TimeZoneInfo timeZoneInfo, RuntimeMode runtimeMode)
|
|
{
|
|
public SemVersion SemVersion { get; } = semVersion;
|
|
public TimeZoneInfo TimeZoneInfo { get; } = timeZoneInfo;
|
|
public RuntimeMode RuntimeMode { get; } = runtimeMode;
|
|
}
|