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; } } }