2020-03-21 03:29:36 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2020-06-28 20:27:03 -04:00
|
|
|
|
using System.IO;
|
2020-03-21 03:29:36 -04:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
|
|
|
|
namespace BirdsiteLive.Controllers
|
|
|
|
|
{
|
|
|
|
|
[ApiController]
|
|
|
|
|
public class InboxController : ControllerBase
|
|
|
|
|
{
|
|
|
|
|
[Route("/inbox")]
|
|
|
|
|
[HttpPost]
|
|
|
|
|
public async Task<IActionResult> Inbox()
|
|
|
|
|
{
|
2020-06-28 20:27:03 -04:00
|
|
|
|
var r = Request;
|
|
|
|
|
using (var reader = new StreamReader(Request.Body))
|
|
|
|
|
{
|
|
|
|
|
var body = await reader.ReadToEndAsync();
|
2020-07-22 19:49:08 -04:00
|
|
|
|
//System.IO.File.WriteAllText($@"C:\apdebug\inbox\{Guid.NewGuid()}.json", body);
|
2020-06-28 20:27:03 -04:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-31 22:52:40 -04:00
|
|
|
|
return Accepted();
|
2020-03-21 03:29:36 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|