using Application.Domain.Entities; using Infrastructure.Data; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using System; namespace IoTCenter.Controllers { [Authorize] //[Device] [ApiExplorerSettings(IgnoreApi = true)] public class HomeController : Controller { private readonly IConfiguration _cfg; private readonly IRepository _sceneRepo; private readonly IRepository _nodeRepo; private readonly IRepository _deviceRepo; private readonly IRepository _dataRepo; private readonly IRepository _categoryRepo; private readonly IRepository _nodeCategoryNodeRepo; public HomeController( IConfiguration cfg, IRepository sceneRepo, IRepository nodeRepo, IRepository deviceRepo, IRepository dataRepo, IRepository categoryRepo, IRepository nodeCategoryNodeRepo) { this._cfg = cfg; this._sceneRepo = sceneRepo; this._nodeRepo = nodeRepo; this._deviceRepo = deviceRepo; this._dataRepo = dataRepo; this._categoryRepo = categoryRepo; this._nodeCategoryNodeRepo = nodeCategoryNodeRepo; } public IActionResult Index() { return View(); } public IActionResult Product() { return View(); } public IActionResult Device(string productNumber) { return View(); } public IActionResult Nodes() { return View(); } public IActionResult Node() { return View(); } [Route("/Device")] public IActionResult Device(Guid id) { return View(); } } }