diff --git a/Duplicati/WebserverCore/Endpoints/ServerStateIv1Endpoint.cs b/Duplicati/WebserverCore/Endpoints/ServerStateIv1Endpoint.cs new file mode 100644 index 000000000..30388e27d --- /dev/null +++ b/Duplicati/WebserverCore/Endpoints/ServerStateIv1Endpoint.cs @@ -0,0 +1,11 @@ +using Duplicati.WebserverCore.Abstractions; + +namespace Duplicati.WebserverCore.Endpoints; + +public class ServerStateIv1Endpoint : IV1Endpoint +{ + public static void Map(RouteGroupBuilder group) + { + group.MapGet("serverstate/", (IStatusService statusService) => statusService.GetStatus()); + } +} \ No newline at end of file