early work on supporting multiple files

This commit is contained in:
Ryan Peters
2023-02-07 12:21:22 -05:00
parent ed90291b93
commit f610664230
6 changed files with 36 additions and 22 deletions

View File

@ -12,9 +12,10 @@ public class HomeController : Controller
this.noteService = noteService;
}
public IActionResult Index()
[Route("{noteName?}")]
public IActionResult Index(string? noteName)
{
var content = noteService.Get();
var content = noteService.Get(noteName);
return View((object)content);
}