mirror of
https://github.com/fergalmoran/podnoms.git
synced 2025-12-23 01:40:26 +00:00
14 lines
428 B
C#
14 lines
428 B
C#
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using PodNoms.Api.Utils;
|
|
|
|
namespace PodNoms.Api.Controllers {
|
|
[Route("[controller]")]
|
|
public class BoilerplateController : Controller {
|
|
[HttpGet]
|
|
public async Task<ActionResult<string>> Get(string key) {
|
|
var html = await ResourceReader.ReadResource($"{key}.html");
|
|
return Content(html, "text/plain");
|
|
}
|
|
}
|
|
} |