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]")]
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;
}
}
}