mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-21 16:58:37 +00:00
Add BGR action
Existing one soon to be deprecated
This commit is contained in:
@@ -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))));
|
||||
|
||||
Reference in New Issue
Block a user