change how default note name is set

This commit is contained in:
Ryan Peters 2024-01-06 21:00:49 -05:00
parent 4269188c8c
commit ac13770ce0

View File

@ -15,14 +15,9 @@ public class NoteController : Controller
this.noteService = noteService; this.noteService = noteService;
} }
[Route("{noteName?}")] [Route("{noteName=default}")]
public IActionResult Index(string noteName) public IActionResult Index(string noteName)
{ {
if (string.IsNullOrWhiteSpace(noteName))
{
noteName = "default";
}
var model = new ContentModel var model = new ContentModel
{ {
CurrentNote = noteName, CurrentNote = noteName,