Fix digest tests and update controllers with new digest attribute

This commit is contained in:
Slendy 2024-02-29 18:27:26 -06:00
commit d458eb90ad
No known key found for this signature in database
GPG key ID: 7288D68361B91428
29 changed files with 178 additions and 267 deletions

View file

@ -1,20 +1,15 @@
using LBPUnion.ProjectLighthouse.Database;
using LBPUnion.ProjectLighthouse.Extensions;
using LBPUnion.ProjectLighthouse.Helpers;
using LBPUnion.ProjectLighthouse.Servers.GameServer.Types;
using LBPUnion.ProjectLighthouse.Types.Entities.Profile;
using LBPUnion.ProjectLighthouse.Types.Entities.Token;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace LBPUnion.ProjectLighthouse.Servers.GameServer.Controllers.Login;
[ApiController]
[Authorize]
[Route("LITTLEBIGPLANETPS3_XML/goodbye")]
[Produces("text/xml")]
public class LogoutController : ControllerBase
public class LogoutController : GameController
{
private readonly DatabaseContext database;
public LogoutController(DatabaseContext database)
@ -22,8 +17,8 @@ public class LogoutController : ControllerBase
this.database = database;
}
[HttpPost]
public async Task<IActionResult> OnPost()
[HttpPost("goodbye")]
public async Task<IActionResult> OnLogout()
{
GameTokenEntity token = this.GetToken();
@ -37,6 +32,4 @@ public class LogoutController : ControllerBase
return this.Ok();
}
}