change how default note name is set
This commit is contained in:
parent
4269188c8c
commit
ac13770ce0
@ -15,14 +15,9 @@ public class NoteController : Controller
|
||||
this.noteService = noteService;
|
||||
}
|
||||
|
||||
[Route("{noteName?}")]
|
||||
[Route("{noteName=default}")]
|
||||
public IActionResult Index(string noteName)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(noteName))
|
||||
{
|
||||
noteName = "default";
|
||||
}
|
||||
|
||||
var model = new ContentModel
|
||||
{
|
||||
CurrentNote = noteName,
|
||||
|
Loading…
Reference in New Issue
Block a user