early work on supporting multiple files
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user