blob: 6db90334c4f72bf80800b31b42e6495ba48fa782 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
using System.Text.Json.Serialization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.OpenApi.Validations.Rules;
using ModAS.Server.Attributes;
namespace ModAS.Server.Controllers.AppService;
[ApiController]
[ApiExplorerSettings(IgnoreApi = true)] //hide from swagger
public class PingController : ControllerBase {
[HttpPost("/_matrix/app/v1/ping")]
[UserAuth(AuthType = AuthType.Server)]
public IActionResult PutTransactions([FromBody] TransactionIdContainer data) {
return Ok(new { });
}
public class TransactionIdContainer {
[JsonPropertyName("transaction_id")]
public string TransactionId { get; set; }
}
}
|