Files
UnrealEngineUWP/Engine/Source/Programs/UnrealGameSync/MetadataServer/Controllers/ErrorController.cs
Chris Gagnon 9f1505e469 Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 6671275 by Chris Gagnon in Dev-Editor branch]
2019-05-29 20:48:56 -04:00

22 lines
551 B
C#

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
using System.Collections.Generic;
using System.Web.Http;
using MetadataServer.Connectors;
using MetadataServer.Models;
namespace MetadataServer.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);
}
}
}