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