Merge branch 'master' into dev/multiple-notes
This commit is contained in:
17
Controllers/ApiController.cs
Normal file
17
Controllers/ApiController.cs
Normal file
@ -0,0 +1,17 @@
|
||||
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;
|
||||
}
|
||||
|
||||
public string Note() => noteService.Get();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user