mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
Finish converting all apis to controllers, static endpoints next.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user