mirror of
https://github.com/fergalmoran/podnoms.git
synced 2025-12-25 10:47:51 +00:00
Boilerplate added
This commit is contained in:
13
server/Controllers/BoilerplateController.cs
Normal file
13
server/Controllers/BoilerplateController.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user