mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-13 21:32:28 +00:00
Reduce crashing on LBP3 (#468)
* 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
This commit is contained in:
parent
d640c000aa
commit
b1ad4d3218
4 changed files with 33 additions and 5 deletions
|
@ -25,6 +25,17 @@ public class MatchController : ControllerBase
|
|||
this.database = database;
|
||||
}
|
||||
|
||||
[HttpPost("gameState")]
|
||||
[Produces("text/plain")]
|
||||
public async Task<IActionResult> GameState()
|
||||
{
|
||||
GameToken? token = await this.database.GameTokenFromRequest(this.Request);
|
||||
|
||||
if (token == null) return this.StatusCode(403, "");
|
||||
|
||||
return this.Ok("VALID");
|
||||
}
|
||||
|
||||
[HttpPost("match")]
|
||||
[Produces("text/plain")]
|
||||
public async Task<IActionResult> Match()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue