Refactored api server project for latest mooncore changes

This commit is contained in:
2025-07-15 21:04:46 +02:00
parent 514f862a9d
commit f22f0c0e51
8 changed files with 271 additions and 110 deletions

View File

@@ -4,6 +4,7 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using MoonCore.Exceptions;
using MoonCore.Helpers;
using MoonlightServers.ApiServer.Mappers;
using MoonlightServers.ApiServer.Services;
using MoonlightServers.Shared.Http.Responses.Admin.Stars;
@@ -48,6 +49,6 @@ public class StarImportExportController : Controller
var star = await ImportExportService.Import(content);
return Mapper.Map<StarDetailResponse>(star);
return StarMapper.ToAdminResponse(star);
}
}