Finish converting all apis to controllers, static endpoints next.

This commit is contained in:
whoswhip
2025-07-09 14:50:59 -04:00
parent fddfeb6525
commit bea106ac72
7 changed files with 256 additions and 238 deletions
@@ -310,7 +310,7 @@ namespace SharpbinV2.Server.Controllers
return BadRequest(new { success = false, message = "Page number exceeds available pages." });
List<Paste?>? pastes = await _databaseService.GetPastesFromUser(user, limit, page, _logger);
if (pastes == null || pastes.Count == 0)
return NotFound(new { success = false, message = "No pastes found for this user." });
return NotFound(new { success = false, message = "No pastes found." });
var pasteList = new List<object>();
foreach (var paste in pastes)
{