Refactor MCP Server and Complete it ...

This commit is contained in:
2026-11-05 10:44:17 +03:30
parent 37cba11e5d
commit c686750e2a
5 changed files with 32 additions and 53 deletions
-18
View File
@@ -1,10 +1,7 @@
using xCommons.Providers;
using xCommons.Extensions;
using xCommons.Controllers;
using xExceptions.Constants;
using xCommons.Configurations;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Microsoft.AspNetCore.Authorization;
@@ -44,20 +41,5 @@ namespace xAiApi.Controllers
//
return Ok(message);
}
/// <summary>
/// Global Exception Handler Endpoint (Production) ...
/// Returns a Generic Error without Leaking Exception Details ...
/// </summary>
/// <returns></returns>
[AllowAnonymous]
[Route("error")]
[ApiExplorerSettings(IgnoreApi = true)]
public virtual ActionResult Error()
{
//
var error = XException.ActionFailed.ToXError();
return StatusCode(StatusCodes.Status500InternalServerError, error);
}
}
}