Files
UnrealEngine/Engine/Source/Programs/UnrealGameSync/MetadataServer/Controllers/CommentController.cs
2025-05-18 13:04:45 +08:00

21 lines
501 B
C#

// Copyright 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 CommentController : ApiController
{
public List<CommentData> Get(string Project, long LastCommentId)
{
return SqlConnector.GetComments(Project, LastCommentId);
}
public void Post([FromBody] CommentData Comment)
{
SqlConnector.PostComment(Comment);
}
}
}