Realm tags and discovery

This commit is contained in:
2025-06-26 19:00:55 +08:00
parent f170793928
commit d492c9ce1f
12 changed files with 4220 additions and 2 deletions

View File

@ -0,0 +1,17 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using DysonNetwork.Sphere.Realm;
using Microsoft.AspNetCore.Mvc;
namespace DysonNetwork.Sphere.Discovery;
[ApiController]
[Route("discovery")]
public class DiscoveryController(DiscoveryService discoveryService) : ControllerBase
{
[HttpGet("realms")]
public Task<List<Realm.Realm>> GetPublicRealms([FromQuery] string? query, [FromQuery] List<string>? tags)
{
return discoveryService.GetPublicRealmsAsync(query, tags);
}
}