17 lines
372 B
C#
17 lines
372 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using System.Text.Json;
|
|
|
|
namespace NeDvachAPI.Controllers
|
|
{
|
|
[ApiController]
|
|
[Route("[controller]")]
|
|
public class PostToController : ControllerBase
|
|
{
|
|
[HttpPost(Name = "PostPosts")]
|
|
public void ReceivePost([FromBody] Post ReceivedPost)
|
|
{
|
|
DBchat.SendPost(ReceivedPost);
|
|
}
|
|
}
|
|
}
|