18 lines
413 B
C#
18 lines
413 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using System.Text.Json;
|
|
|
|
namespace NeDvachAPI.Controllers
|
|
{
|
|
[ApiController]
|
|
[Route("[controller]")]
|
|
public class TestPostingController : ControllerBase
|
|
{
|
|
[HttpPost(Name = "TestPostPosts")]
|
|
public Post ReceivePost([FromBody] Post ReceivedPost)
|
|
{
|
|
//DBchat.SendPost(ReceivedPost);
|
|
return ReceivedPost;
|
|
}
|
|
}
|
|
}
|