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:
17
Controllers/TestPosting.cs
Normal file
17
Controllers/TestPosting.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace NeDvachAPI.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[Route("[controller]")]
|
||||
public class TestPostingController : ControllerBase
|
||||
{
|
||||
[HttpPost(Name = "TestPostPosts")]
|
||||
public Post ReceivePost([FromBody] Post ReceivedPost)
|
||||
{
|
||||
//DBchat.SendPost(ReceivedPost);
|
||||
return ReceivedPost;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user