Added Test echo posting
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
rak 2022-10-18 22:10:33 +10:00
parent 5fee059b51
commit cd5d50f06b

View File

@ -7,11 +7,11 @@ namespace NeDvachAPI.Controllers
[Route("[controller]")] [Route("[controller]")]
public class TestPostingController : ControllerBase public class TestPostingController : ControllerBase
{ {
[HttpPost(Name = "TestPostPosts")] [HttpPost("{text}", Name = "ReceivePost")]
public Post ReceivePost([FromBody] Post ReceivedPost) public string ReceivePost(string text)
{ {
//DBchat.SendPost(ReceivedPost); //DBchat.SendPost(ReceivedPost);
return ReceivedPost; return text;
} }
} }
} }