2018-03-21 12:57:43 -04:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
using Bit.Admin.Models;
|
2018-03-21 14:26:49 -04:00
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
2018-03-21 12:57:43 -04:00
|
|
|
|
|
|
|
|
|
|
namespace Bit.Admin.Controllers
|
|
|
|
|
|
{
|
|
|
|
|
|
public class HomeController : Controller
|
|
|
|
|
|
{
|
2018-03-21 14:26:49 -04:00
|
|
|
|
[Authorize]
|
2018-03-21 12:57:43 -04:00
|
|
|
|
public IActionResult Index()
|
|
|
|
|
|
{
|
|
|
|
|
|
return View();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public IActionResult Error()
|
|
|
|
|
|
{
|
|
|
|
|
|
return View(new ErrorViewModel
|
|
|
|
|
|
{
|
|
|
|
|
|
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|