Having the clear locations endpoint only clear world locations, and adding endpoint to remove all items

This commit is contained in:
hz
2025-08-21 00:28:45 -05:00
parent 1e4b8463ee
commit b7c221d765
7 changed files with 194 additions and 1 deletions
+5
View File
@@ -29,6 +29,11 @@ public class PlayerService
public virtual async Task<Player> GetByIdAsync(string id) =>
await _players.Find(p => p.Id == id).FirstOrDefaultAsync();
public virtual async Task<List<Player>> GetAllAsync()
{
return await _players.Find(_ => true).ToListAsync();
}
public virtual async Task CreateAsync(Player player) =>
await _players.InsertOneAsync(player);