This commit is contained in:
2020-05-17 20:51:49 +00:00
parent fb8413f845
commit 6e89c6dff8

View File

@@ -14,7 +14,7 @@ namespace AyaNova.Api.Controllers
/// </summary> /// </summary>
[ApiVersion("8.0")] [ApiVersion("8.0")]
[Route("api/v{version:apiVersion}/")] [Route("api/v{version:apiVersion}/")]
[AllowAnonymous] [Authorize]
[ApiController] [ApiController]
public class ApiMetaController : ControllerBase public class ApiMetaController : ControllerBase
{ {
@@ -33,9 +33,10 @@ namespace AyaNova.Api.Controllers
} }
/// <summary> /// <summary>
/// AyaNova API documentation and manual /// Server landing page
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[AllowAnonymous]
[HttpGet] [HttpGet]
public async Task<ContentResult> Index() public async Task<ContentResult> Index()
{ {
@@ -434,7 +435,6 @@ namespace AyaNova.Api.Controllers
/// Get API server info for general display /// Get API server info for general display
/// </summary> /// </summary>
/// <returns>API server info</returns> /// <returns>API server info</returns>
[Authorize]
[HttpGet("server-info")] [HttpGet("server-info")]
public ActionResult ServerInfo() public ActionResult ServerInfo()
{ {
@@ -456,7 +456,6 @@ namespace AyaNova.Api.Controllers
/// Get build mode of server, used for automated testing purposes /// Get build mode of server, used for automated testing purposes
/// </summary> /// </summary>
/// <returns>"DEBUG" or "RELEASE"</returns> /// <returns>"DEBUG" or "RELEASE"</returns>
[Authorize]
[HttpGet("build-mode")] [HttpGet("build-mode")]
public ActionResult BuildMode() public ActionResult BuildMode()
{ {