✨ DysonNetwork.Pass service frontend
This commit is contained in:
18
DysonNetwork.Pass/Auth/CaptchaController.cs
Normal file
18
DysonNetwork.Pass/Auth/CaptchaController.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace DysonNetwork.Pass.Auth;
|
||||
|
||||
[ApiController]
|
||||
[Route("/api/captcha")]
|
||||
public class CaptchaController(IConfiguration configuration) : ControllerBase
|
||||
{
|
||||
[HttpGet]
|
||||
public IActionResult GetConfiguration()
|
||||
{
|
||||
return Ok(new
|
||||
{
|
||||
provider = configuration["Captcha:Provider"],
|
||||
apiKey = configuration["Captcha:ApiKey"],
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user