Include music db files, update link for event files, fix .evt and .cmp static file extension unknown

This commit is contained in:
asesidaa
2023-02-11 00:46:44 +08:00
parent 6eb71437cf
commit aefc9ca326
11 changed files with 78 additions and 32 deletions
+3 -4
View File
@@ -4,7 +4,7 @@ using MediatR;
namespace Application.Game.Server;
public record GetDataQuery(string Host) : IRequest<string>;
public record GetDataQuery(string Host, string Scheme) : IRequest<string>;
public class GetDataQueryHandler : IRequestHandler<GetDataQuery, string>
{
@@ -23,9 +23,8 @@ public class GetDataQueryHandler : IRequestHandler<GetDataQuery, string>
{
return Task.FromResult(response);
}
var host = request.Host;
var urlBase = $"http://{host}/events/";
var urlBase = $"{request.Scheme}://{request.Host}/events/";
var dataString = new StringBuilder();
var events = eventManagerService.GetEvents();
var count = 0;