Merge branch 'dev/multiple-notes'

This commit is contained in:
Ryan Peters
2024-01-06 21:10:06 -05:00
16 changed files with 161 additions and 60 deletions

View File

@ -3,12 +3,14 @@ using BinaryDad.Notes.Services;
namespace BinaryDad.Notes.Controllers
{
[ApiController]
public class ApiController : ControllerBase
{
private readonly INoteService noteService;
public ApiController(INoteService noteService) => this.noteService = noteService;
public string Note() => noteService.Get();
[Route("note/{noteName}")]
public string Note(string noteName) => noteService.GetText(noteName);
}
}