mirror of
https://github.com/bitwarden/server
synced 2025-12-28 22:23:30 +00:00
26 lines
550 B
C#
26 lines
550 B
C#
using System;
|
|
using System.Diagnostics;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Bit.Admin.Models;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
namespace Bit.Admin.Controllers
|
|
{
|
|
public class HomeController : Controller
|
|
{
|
|
[Authorize]
|
|
public IActionResult Index()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public IActionResult Error()
|
|
{
|
|
return View(new ErrorViewModel
|
|
{
|
|
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier
|
|
});
|
|
}
|
|
}
|
|
}
|