40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using BlueWest.Data.Auth.Context.Users;
|
|
using CodeLiturgy.Data.Capital;
|
|
using CodeLiturgy.Domain;
|
|
using CodeLiturgy.Views.Utils;
|
|
using Microsoft.AspNetCore.Authentication.Cookies;
|
|
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Cors;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
namespace CodeLiturgy.Views.Controllers
|
|
{
|
|
[Route("api/envs")]
|
|
[ApiController]
|
|
[Authorize]
|
|
|
|
public class EnvironmentsController : ControllerBase
|
|
{
|
|
private ApplicationUserManager _userManager;
|
|
private ILogger<UserController> _logger;
|
|
private SiteDbContext _siteDbContext;
|
|
|
|
public EnvironmentsController(ApplicationUserManager userManager, ILogger<UserController> logger, SiteDbContext siteDbContext)
|
|
{
|
|
_logger = logger;
|
|
_userManager = userManager;
|
|
_siteDbContext = siteDbContext;
|
|
}
|
|
|
|
[HttpGet]
|
|
public async Task<ActionResult<Site>> GetSites()
|
|
{
|
|
return Ok(new Site());
|
|
}
|
|
|
|
}
|
|
}
|
|
|