mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-15 06:02:28 +00:00
* Implement additional lbp3 endpoints * Cleanup lbp3 changes * Update return content types * Fix developer video return type * I forgot how xml works * I need to go to bed
28 lines
No EOL
705 B
C#
28 lines
No EOL
705 B
C#
using LBPUnion.ProjectLighthouse.PlayerData;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace LBPUnion.ProjectLighthouse.Servers.GameServer.Controllers;
|
|
|
|
[ApiController]
|
|
[Route("LITTLEBIGPLANETPS3_XML/")]
|
|
[Produces("text/xml")]
|
|
public class DeveloperController : Controller
|
|
{
|
|
|
|
private readonly Database database;
|
|
|
|
public DeveloperController(Database database)
|
|
{
|
|
this.database = database;
|
|
}
|
|
|
|
[HttpGet("/developer_videos")]
|
|
public async Task<IActionResult> DeveloperVideos()
|
|
{
|
|
GameToken? token = await this.database.GameTokenFromRequest(this.Request);
|
|
|
|
if (token == null) return this.StatusCode(403, "");
|
|
|
|
return this.Ok("<videos></videos>");
|
|
}
|
|
} |