mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-25 23:18:56 -07:00
Radicade Public Code
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using RadicadeServer.RecNet.Responses;
|
||||
|
||||
namespace RadicadeServer.API.Progression
|
||||
{
|
||||
[Route("econ/api/checklist")]
|
||||
[Route("api/checklist")]
|
||||
public class ChecklistAPI : Controller
|
||||
{
|
||||
private static readonly object[] DefaultChecklist =
|
||||
{
|
||||
new { Order = 1, Objective = 32, Count = 1, CreditAmount = 25 },
|
||||
new { Order = 2, Objective = 2, Count = 1, CreditAmount = 25 },
|
||||
new { Order = 3, Objective = 30, Count = 1, CreditAmount = 25 },
|
||||
new { Order = 4, Objective = 6, Count = 1, CreditAmount = 25 },
|
||||
};
|
||||
|
||||
[HttpGet("v1/current"), Authorize]
|
||||
[HttpGet("v2/current"), Authorize]
|
||||
public IActionResult Current()
|
||||
{
|
||||
return Ok(DefaultChecklist);
|
||||
}
|
||||
|
||||
[HttpPost("v1/complete"), Authorize]
|
||||
[HttpPost("v2/complete"), Authorize]
|
||||
public IActionResult Complete()
|
||||
{
|
||||
return Ok(new Success(true, null, new
|
||||
{
|
||||
BalanceUpdates = Array.Empty<object>(),
|
||||
CurrencyBalances = Array.Empty<object>(),
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user