From cd5d50f06b9ae022674efe857218fb4c2db1a42e Mon Sep 17 00:00:00 2001 From: rak Date: Tue, 18 Oct 2022 22:10:33 +1000 Subject: [PATCH] Added Test echo posting --- Controllers/TestPosting.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } } }