You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.4 KiB
68 lines
1.4 KiB
using Application.Domain.Entities;
|
|
using Infrastructure.Data;
|
|
using Infrastructure.Extensions;
|
|
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<OrganScene> _organSceneRepo;
|
|
|
|
public HomeController(
|
|
IConfiguration cfg,
|
|
IRepository<OrganScene> organSceneRepo)
|
|
{
|
|
this._cfg = cfg;
|
|
this._organSceneRepo = organSceneRepo;
|
|
}
|
|
|
|
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();
|
|
}
|
|
|
|
#if DEBUG
|
|
|
|
[Route("/license")]
|
|
public IActionResult License(string mac)
|
|
{
|
|
return Content(Helper.Instance.MacEncrypt(mac));
|
|
}
|
|
|
|
#endif
|
|
}
|
|
} |