mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-25 15:09:26 -07:00
19 lines
446 B
C#
19 lines
446 B
C#
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using RadicadeServer.RecNet.Auth.Photon;
|
|
|
|
namespace RadicadeServer.Auth.Photon
|
|
{
|
|
[ApiController, Route("auth/photon")]
|
|
public class PhotonAuthAPI : Controller
|
|
{
|
|
[AllowAnonymous]
|
|
[HttpGet("authenticate")]
|
|
[HttpPost("authenticate")]
|
|
public ActionResult<PhotonAuthResult> AuthenticatePhoton()
|
|
{
|
|
return Ok(new PhotonAuthResult { ResultCode = 1 });
|
|
}
|
|
}
|
|
}
|