mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-21 14:04:12 +01:00
Allow accessing "misc/lang" endpoint with Greenfield auth schemes (#2471)
closes #2437
This commit is contained in:
parent
c0a544351b
commit
475a68924e
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ namespace BTCPayServer.Controllers
|
||||||
}
|
}
|
||||||
|
|
||||||
[Route("misc/lang")]
|
[Route("misc/lang")]
|
||||||
[Authorize(AuthenticationSchemes = AuthenticationSchemes.Cookie)]
|
[Authorize(AuthenticationSchemes = AuthenticationSchemes.Cookie + "," + AuthenticationSchemes.Greenfield)]
|
||||||
public IActionResult Languages()
|
public IActionResult Languages()
|
||||||
{
|
{
|
||||||
return Json(LanguageService.GetLanguages(), new JsonSerializerSettings() { Formatting = Formatting.Indented });
|
return Json(LanguageService.GetLanguages(), new JsonSerializerSettings() { Formatting = Formatting.Indented });
|
||||||
|
|
Loading…
Add table
Reference in a new issue