Notes/Controllers/ApiController.cs

18 lines
417 B
C#
Raw Normal View History

using Microsoft.AspNetCore.Mvc;
using BinaryDad.Notes.Services;
namespace BinaryDad.Notes.Controllers
{
public class ApiController : ControllerBase
{
private readonly INoteService noteService;
public ApiController(INoteService noteService)
{
this.noteService = noteService;
}
2023-07-28 20:19:59 +00:00
public string Note(string noteName) => noteService.GetText(noteName);
}
}