still figuring out how to handle default note name...
This commit is contained in:
@ -3,6 +3,7 @@ using BinaryDad.Notes.Services;
|
||||
|
||||
namespace BinaryDad.Notes.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
public class ApiController : ControllerBase
|
||||
{
|
||||
private readonly INoteService noteService;
|
||||
@ -12,6 +13,7 @@ namespace BinaryDad.Notes.Controllers
|
||||
this.noteService = noteService;
|
||||
}
|
||||
|
||||
[Route("note/{noteName}")]
|
||||
public string Note(string noteName) => noteService.GetText(noteName);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user