Added Test echo posting
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5fee059b51
commit
cd5d50f06b
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user