Add BGR action

Existing one soon to be deprecated
This commit is contained in:
JustArchi
2018-09-21 17:16:43 +02:00
parent ca94d643fb
commit 59218684b2
7 changed files with 79 additions and 19 deletions

View File

@@ -29,7 +29,7 @@ namespace ArchiSteamFarm.IPC.Controllers.Api {
[Route("Api/Structure")]
public sealed class StructureController : ControllerBase {
[HttpGet("{structure:required}")]
public ActionResult<GenericResponse<object>> Get(string structure) {
public ActionResult<GenericResponse<object>> StructureGet(string structure) {
if (string.IsNullOrEmpty(structure)) {
ASF.ArchiLogger.LogNullError(nameof(structure));
return BadRequest(new GenericResponse<object>(false, string.Format(Strings.ErrorIsEmpty, nameof(structure))));