feat: reporting apis; better rate limiting

refactor: change certain apis to be more REST like (e.g. DELETE /api/paste/{pasteId}/delete -> DELETE /api/paste/{pasteId}
This commit is contained in:
2026-01-10 00:06:36 -05:00
parent 864a4ee91a
commit 14bbd9c762
15 changed files with 954 additions and 48 deletions
+15
View File
@@ -0,0 +1,15 @@
using System.ComponentModel.DataAnnotations;
namespace SharpbinV3.Server.DTOs
{
public class ReportDto
{
[Required]
[MaxLength(1000)]
public string Description { get; set; } = string.Empty;
[Required]
public string ReportType { get; set; } = string.Empty; // e.g., "Spam", "Abuse", etc.
public string ReportStatus { get; set; } = "Open";
public string? VerificationToken { get; set; }
}
}