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