Files
UnrealEngineUWP/Engine/Source/Programs/UnrealGameSync/MetadataServer/Controllers/ErrorController.cs
Ben Marsh ee56b24b9d Update NuGet package versions for MetadataServer, and fix namespace names.
#rb none
#rnx

[CL 6079495 by Ben Marsh in Dev-Build branch]
2019-04-24 13:02:34 -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);
}
}
}