Files
UnrealEngineUWP/Engine/Source/Programs/UnrealGameSync/UnrealGameSyncMetadataServer/Controllers/ErrorController.cs
Ben Marsh 727b08bad9 Copy UGS from Dev-Build (pt 2)
#rb none
#rnx

[CL 4732764 by Ben Marsh in Main branch]
2019-01-16 10:32:04 -05:00

22 lines
593 B
C#

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
using System.Collections.Generic;
using System.Web.Http;
using UnrealGameSyncMetadataServer.Connectors;
using UnrealGameSyncMetadataServer.Models;
namespace UnrealGameSyncMetadataServer.Controllers
{
public class ErrorController : ApiController
{
public List<TelemetryErrorData> Get(int Records = 10)
{
return SqlConnector.GetErrorData(Records);
}
public void Post([FromBody] TelemetryErrorData Data, string Version, string IpAddress)
{
SqlConnector.PostErrorData(Data, Version, IpAddress);
}
}
}