Boilerplate added

This commit is contained in:
Fergal Moran
2018-05-02 22:17:22 +01:00
parent 5c51c531f1
commit 15f681254b
11 changed files with 101 additions and 9 deletions

View File

@@ -0,0 +1,13 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using PodNoms.Api.Utils;
namespace PodNoms.Api.Controllers {
[Route("[controller]")]
public class BoilerplateController : Controller {
public async Task<ActionResult<string>> Get(string key) {
var html = await ResourceReader.ReadResource($"{key}.html");
return Content(html, "text/plain");
}
}
}