using Microsoft.AspNetCore.Mvc; namespace Elisa.GameServer.Controllers; public class FileController : Controller { [HttpGet("image/imageconfig.txt", Name = "ImageConfig")] public async Task ImageConfig() { return Results.Text(System.IO.File.ReadAllText(@"Resources\image\ImageConfig.txt")); } [HttpGet("userProtocol_en_v005.txt", Name = "Terms Of Service")] public async Task TermsOfService() { return Results.Text(System.IO.File.ReadAllText(@"Resources\userProtocol_en_v005.txt")); } [HttpGet("iedsafe/Client/Android/24027/config2.xml", Name = "dl.listdl Config2")] public async Task config2() { return Results.Text(System.IO.File.ReadAllText(@"Resources\config2.xml")); } [HttpGet("sunborn-p1-us/HomePage.txt/r={rvalue}", Name = "HomePage.txt")] public async Task homepage(string rvalue) { return Results.Text(@"1|2|4|5|6|7|9|10|11|13"); } }