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.
iot/projects/IoTDameon/Controllers/HomeController.cs

18 lines
444 B

using Microsoft.AspNetCore.Mvc;
using System.Reflection;
namespace IoTDameon.Controllers
{
public class HomeController : Controller
{
public IActionResult Index()
{
return GetVersion();
}
public IActionResult GetVersion()
{
return Content(Assembly.GetEntryAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion);
}
}
}