You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#ROBOMERGE-AUTHOR: ben.marsh #ROBOMERGE-SOURCE: CL 17926237 in //UE5/Main/... #ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v885-17909292) [CL 17926263 by ben marsh in ue5-release-engine-test branch]
46 lines
1010 B
C#
46 lines
1010 B
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using Amazon.Runtime.Internal.Util;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.Extensions.Logging;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace HordeServer.Controllers
|
|
{
|
|
/// <summary>
|
|
/// Controller for the /api/v1/swarm endpoint
|
|
/// </summary>
|
|
[ApiController]
|
|
[Route("[controller]")]
|
|
public sealed class SwarmController : ControllerBase
|
|
{
|
|
/// <summary>
|
|
/// Logger instance
|
|
/// </summary>
|
|
ILogger<SwarmController> Logger;
|
|
|
|
/// <summary>
|
|
/// Constructor
|
|
/// </summary>
|
|
public SwarmController(ILogger<SwarmController> Logger)
|
|
{
|
|
this.Logger = Logger;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the latest version info
|
|
/// </summary>
|
|
/// <returns>Result code</returns>
|
|
[HttpPost]
|
|
[Route("/api/v1/swarm/reviews")]
|
|
public ActionResult AddReview(object Request)
|
|
{
|
|
Logger.LogInformation("Added Swarm review: {Request}", Request.ToString());
|
|
return Ok();
|
|
}
|
|
}
|
|
}
|