working nicely
This commit is contained in:
@ -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()
|
||||
};
|
||||
|
Reference in New Issue
Block a user