24 lines
625 B
C#
24 lines
625 B
C#
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace ConstructorAppUI.Controllers
|
|
{
|
|
[AllowAnonymous]
|
|
public class HomeController : Controller
|
|
{
|
|
private readonly IHttpClientFactory _httpClientFactory;
|
|
private readonly string _apiBaseUrl;
|
|
|
|
public HomeController(IHttpClientFactory httpClientFactory, IConfiguration configuration)
|
|
{
|
|
_httpClientFactory = httpClientFactory;
|
|
_apiBaseUrl = configuration["ApiSettings:BaseUrl"];
|
|
}
|
|
|
|
public IActionResult Index()
|
|
{
|
|
return View();
|
|
}
|
|
}
|
|
}
|