diff options
Diffstat (limited to 'DSACore/Controllers/CommandsController.cs')
-rw-r--r-- | DSACore/Controllers/CommandsController.cs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/DSACore/Controllers/CommandsController.cs b/DSACore/Controllers/CommandsController.cs index d35690c..5addf82 100644 --- a/DSACore/Controllers/CommandsController.cs +++ b/DSACore/Controllers/CommandsController.cs @@ -1,8 +1,5 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using DSACore.Models; +using DSACore.Commands; using DSACore.Models.Network; using Microsoft.AspNetCore.Mvc; @@ -29,17 +26,16 @@ namespace DSACore.Controllers // POST api/<controller>/Felis [HttpPost] - public string Post([FromBody]Command cmd) + public string Post([FromBody] Command cmd) { try { - return Commands.CommandHandler.ExecuteCommand(cmd).message; + return CommandHandler.ExecuteCommand(cmd).message; } catch (Exception e) { return $"Ein Fehler ist aufgetreten: \n {e.Message}"; } - } /* @@ -56,4 +52,4 @@ namespace DSACore.Controllers { }*/ } -} +}
\ No newline at end of file |