18 lines
559 B
C#
18 lines
559 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"));
|
||
|
}
|
||
|
}
|