using Microsoft.AspNetCore.Mvc; namespace API_development.Controllers { [Route("/api/[controller]")] [ApiController] [ApiExplorerSettings(GroupName = "Действия с хобби")] public class HobbiesController : ControllerBase { ApplicationContext db = new ApplicationContext(); [HttpGet] public IActionResult Index() { return Ok(db.tbHobbies.ToList()); } } }