♻️ Move most of models to the Shared package
This commit is contained in:
@ -7,13 +7,12 @@ namespace DysonNetwork.Sphere.Discovery;
|
||||
public class DiscoveryController(DiscoveryService discoveryService) : ControllerBase
|
||||
{
|
||||
[HttpGet("realms")]
|
||||
public Task<List<Realm.Realm>> GetPublicRealms(
|
||||
public Task<List<Shared.Models.Realm>> GetPublicRealms(
|
||||
[FromQuery] string? query,
|
||||
[FromQuery] List<string>? tags,
|
||||
[FromQuery] int take = 10,
|
||||
[FromQuery] int offset = 0
|
||||
)
|
||||
{
|
||||
return discoveryService.GetPublicRealmsAsync(query, tags, take, offset);
|
||||
return discoveryService.GetPublicRealmsAsync(query, take, offset);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user