diff --git a/Controllers/TestPosting.cs b/Controllers/TestPosting.cs index ffd7454..dfeaf20 100644 --- a/Controllers/TestPosting.cs +++ b/Controllers/TestPosting.cs @@ -7,11 +7,11 @@ namespace NeDvachAPI.Controllers [Route("[controller]")] public class TestPostingController : ControllerBase { - [HttpPost(Name = "TestPostPosts")] - public Post ReceivePost([FromBody] Post ReceivedPost) + [HttpPost("{text}", Name = "ReceivePost")] + public string ReceivePost(string text) { //DBchat.SendPost(ReceivedPost); - return ReceivedPost; + return text; } } }