summaryrefslogtreecommitdiff
path: root/DSACore/Controllers/LobbyController.cs
diff options
context:
space:
mode:
authornatrixaeria <janng@gmx.de>2019-05-19 17:40:59 +0200
committernatrixaeria <janng@gmx.de>2019-05-19 17:40:59 +0200
commit1509b5ef3d7e9e71d9294e234ec0e39f2d831998 (patch)
tree78300ffff230958101b422a4e6026925b287822f /DSACore/Controllers/LobbyController.cs
parentc3bb858bb54dc8c64bbd48054c2c58dc0073f09c (diff)
parentc4d046858e0822b7c2c540ac2368b2c0e88e7a26 (diff)
Merge branch 'scribble' of https://github.com/TrueDoctor/DiscoBot into scribble
Diffstat (limited to 'DSACore/Controllers/LobbyController.cs')
-rw-r--r--DSACore/Controllers/LobbyController.cs13
1 files changed, 6 insertions, 7 deletions
diff --git a/DSACore/Controllers/LobbyController.cs b/DSACore/Controllers/LobbyController.cs
index a946184..df22607 100644
--- a/DSACore/Controllers/LobbyController.cs
+++ b/DSACore/Controllers/LobbyController.cs
@@ -1,5 +1,6 @@
-using DSACore.Models.Network;
using System;
+using DSACore.Commands;
+using DSACore.Models.Network;
using Microsoft.AspNetCore.Mvc;
namespace DSACore.Controllers
@@ -13,20 +14,18 @@ namespace DSACore.Controllers
{
return "Usage: get /tokens/{Token}";
}
-
+
[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}";
}
-
- }
-
+ }
}
} \ No newline at end of file