mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-25 15:09:26 -07:00
38 lines
1008 B
C#
38 lines
1008 B
C#
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>(),
|
|
}));
|
|
}
|
|
}
|
|
}
|