working nicely

This commit is contained in:
Ryan Peters
2023-05-17 21:44:41 -04:00
parent 8e7b9c9622
commit 400f20e916
10 changed files with 44 additions and 37 deletions

View File

@ -15,11 +15,12 @@ public class NoteController : Controller
this.noteService = noteService;
}
[Route("{noteName?}")]
public IActionResult Index(string? noteName)
[Route("{noteName=default}")]
public IActionResult Index(string noteName)
{
var model = new ContentModel
{
CurrentNote = noteName,
Text = noteService.GetText(noteName),
NoteNames = noteService.GetNoteNames()
};