30 lines
992 B
C#
30 lines
992 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace Elisa.GameServer.Controllers;
|
|
|
|
public class FileController : Controller
|
|
{
|
|
[HttpGet("image/imageconfig.txt", Name = "ImageConfig")]
|
|
public async Task<IResult> ImageConfig()
|
|
{
|
|
return Results.Text(System.IO.File.ReadAllText(@"Resources\image\ImageConfig.txt"));
|
|
}
|
|
|
|
[HttpGet("userProtocol_en_v005.txt", Name = "Terms Of Service")]
|
|
public async Task<IResult> 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<IResult> 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<IResult> homepage(string rvalue)
|
|
{
|
|
return Results.Text(@"1|2|4|5|6|7|9|10|11|13");
|
|
}
|
|
} |