mirror of
https://github.com/MvDevsUnion/WPetition.git
synced 2026-01-17 10:59:29 +00:00
Implement Turnstile captcha for petition signing and add tweet prompt modal
This commit is contained in:
@@ -39,13 +39,26 @@ namespace Submission.Api.Controllers
|
||||
{
|
||||
return Problem("Petitions Folder not found");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
[HttpGet("petitions-list", Name = "GetPetitionsList")]
|
||||
public IActionResult GetPetitionsList()
|
||||
{
|
||||
var list = _petitionRepository.FilterBy(x => x.Id != null);
|
||||
return Ok(list);
|
||||
}
|
||||
|
||||
|
||||
|
||||
[HttpGet("create-petition-folder", Name = "CreatePetitionFolder")]
|
||||
public IActionResult create_petition_folder()
|
||||
{
|
||||
if (Directory.Exists("Petitions"))
|
||||
{
|
||||
return Ok("Petitions folder already exists");
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
Directory.CreateDirectory("Petitions");
|
||||
|
||||
Reference in New Issue
Block a user