blob: 2d11e6f737f35b417bfebdc921afb21f11fea8e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
using Microsoft.AspNetCore.Mvc;
namespace PagerParser.Controllers;
[ApiController]
[Route("Api")]
public class ApiController : Controller {
[HttpPost("Message/Parse")]
public ParsedPagerMessage? ParseMessage(
IPagerMessageParserService parserService,
[FromBody] string message) {
return parserService.TryParse(message);
}
}
|