2023-06-05 15:45:20 +00:00
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
using BinaryDad.Notes.Services;
|
|
|
|
|
|
|
|
namespace BinaryDad.Notes.Controllers
|
|
|
|
{
|
|
|
|
public class ApiController : ControllerBase
|
|
|
|
{
|
|
|
|
private readonly INoteService noteService;
|
|
|
|
|
2023-07-28 18:52:53 +00:00
|
|
|
public ApiController(INoteService noteService) => this.noteService = noteService;
|
2023-06-05 15:45:20 +00:00
|
|
|
|
|
|
|
public string Note() => noteService.Get();
|
|
|
|
}
|
|
|
|
}
|