This repository has been archived on 2023-06-30. You can view files and clone it, but cannot push or open issues or pull requests.
2chBackAPI/APIControllers/TestPosting.cs

20 lines
470 B
C#
Raw Normal View History

2022-10-18 20:35:11 +10:00
using Microsoft.AspNetCore.Mvc;
2022-10-20 22:24:04 +10:00
using System.Net;
2022-10-18 20:35:11 +10:00
using System.Text.Json;
namespace NeDvachAPI.Controllers
{
[ApiController]
[Route("[controller]")]
public class TestPostingController : ControllerBase
{
2022-10-18 22:35:19 +10:00
[HttpPost]
2022-10-20 22:24:04 +10:00
public int Area([FromForm] int height , int altitude)
2022-10-18 20:35:11 +10:00
{
//DBchat.SendPost(ReceivedPost);
2022-10-20 22:24:04 +10:00
Console.WriteLine("Received! " + height + " " + altitude );
return 200;
2022-10-18 20:35:11 +10:00
}
}
}