method renames

This commit is contained in:
2024-05-07 21:43:09 -04:00
parent aa3accb412
commit e5cb210df2
5 changed files with 8 additions and 8 deletions

View File

@ -11,6 +11,6 @@ namespace BinaryDad.Notes.Controllers
public ApiController(INoteService noteService) => this.noteService = noteService;
[Route("note/{noteName}")]
public string Note(string noteName) => noteService.GetText(noteName);
public string Note(string noteName) => noteService.GetNote(noteName);
}
}

View File

@ -18,7 +18,7 @@ public class NoteController : Controller
var model = new ContentModel
{
CurrentNote = noteName,
Text = noteService.GetText(noteName),
Text = noteService.GetNote(noteName),
NoteNames = noteService.GetNoteNames()
};