ENEI2019-Public/api/Controllers/mvcController.cs

40 lines
837 B
C#
Raw Normal View History

2018-12-12 15:17:08 +00:00
using System.Threading.Tasks;
using api.Data;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using api.Dtos;
using Microsoft.AspNetCore.Identity;
using api.Models;
namespace api.Controllers
{
[ApiController]
[Route("/")]
public class mvcController : Controller
{
private readonly DataContext _context;
private readonly UserManager<User> _userManager;
public mvcController(DataContext context, UserManager<User> userManager)
{
_context = context;
_userManager = userManager;
}
[HttpGet("")]
[AllowAnonymous]
public IActionResult landingPage() {
return View("Views/Landing/index.cshtml");
}
}
}