diff --git a/Bootstrap.Admin/Controllers/NewController.cs b/Bootstrap.Admin/Controllers/Api/NewController.cs similarity index 90% rename from Bootstrap.Admin/Controllers/NewController.cs rename to Bootstrap.Admin/Controllers/Api/NewController.cs index 96d4da91..feb3dca0 100644 --- a/Bootstrap.Admin/Controllers/NewController.cs +++ b/Bootstrap.Admin/Controllers/Api/NewController.cs @@ -1,25 +1,27 @@ -using Bootstrap.DataAccess; -using Bootstrap.Security; -using Microsoft.AspNetCore.Mvc; -using System.Linq; - -namespace Bootstrap.Admin.Controllers -{ - /// - /// - /// - [Route("api/[controller]")] - public class NewController : Controller - { - /// - /// - /// - /// - /// - [HttpGet] - public bool Get(string userName) - { - return BootstrapUser.RetrieveUserByUserName(userName) == null && !UserHelper.RetrieveNewUsers().Any(u => u.UserName == userName); - } - } +using Bootstrap.DataAccess; +using Bootstrap.Security; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; +using System.Linq; + +namespace Bootstrap.Admin.Controllers +{ + /// + /// + /// + [Route("api/[controller]")] + public class NewController : Controller + { + /// + /// + /// + /// + /// + [HttpGet] + [AllowAnonymous] + public bool Get(string userName) + { + return BootstrapUser.RetrieveUserByUserName(userName) == null && !UserHelper.RetrieveNewUsers().Any(u => u.UserName == userName); + } + } } \ No newline at end of file