♻️ Centralized data models (wip)
This commit is contained in:
@@ -7,7 +7,7 @@ namespace DysonNetwork.Sphere.Discovery;
|
||||
public class DiscoveryController(DiscoveryService discoveryService) : ControllerBase
|
||||
{
|
||||
[HttpGet("realms")]
|
||||
public Task<List<Realm.Realm>> GetPublicRealms(
|
||||
public Task<List<Shared.Models.SnRealm>> GetPublicRealms(
|
||||
[FromQuery] string? query,
|
||||
[FromQuery] int take = 10,
|
||||
[FromQuery] int offset = 0
|
||||
|
@@ -4,7 +4,7 @@ namespace DysonNetwork.Sphere.Discovery;
|
||||
|
||||
public class DiscoveryService(AppDatabase appDatabase)
|
||||
{
|
||||
public Task<List<Realm.Realm>> GetCommunityRealmAsync(
|
||||
public Task<List<Shared.Models.SnRealm>> GetCommunityRealmAsync(
|
||||
string? query,
|
||||
int take = 10,
|
||||
int offset = 0,
|
||||
|
Reference in New Issue
Block a user