diff options
author | Dennis Kobert <d-kobert@web.de> | 2019-06-12 21:47:51 +0200 |
---|---|---|
committer | Dennis Kobert <d-kobert@web.de> | 2019-06-12 21:47:51 +0200 |
commit | 304437b834e8c87687f68333ae67a13ee1377a73 (patch) | |
tree | 51dd246568e8a159627d9cb92e99890adb5cbef8 /DSACore/Controllers/LobbyController.cs | |
parent | 2fa4a0e50ebfc97059c8b84dbd17e79f9afc8a8d (diff) |
Adjust Codestyle
Diffstat (limited to 'DSACore/Controllers/LobbyController.cs')
-rw-r--r-- | DSACore/Controllers/LobbyController.cs | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/DSACore/Controllers/LobbyController.cs b/DSACore/Controllers/LobbyController.cs index 7890b4f..41ce436 100644 --- a/DSACore/Controllers/LobbyController.cs +++ b/DSACore/Controllers/LobbyController.cs @@ -1,30 +1,23 @@ using System; -using DSACore.Models.Network; using DSALib.Commands; using DSALib.Models.Network; using Microsoft.AspNetCore.Mvc; -namespace DSACore.Controllers -{ - public class ScribbleController : Controller - { +namespace DSACore.Controllers { + public class ScribbleController : Controller { [Route("[controller]")] // GET: api/<controller> [HttpGet] - public string Get() - { + public string Get() { return "Usage: get /tokens/{Token}"; } [HttpPost] - public string Post([FromBody] Command cmd) - { - try - { + public string Post([FromBody] Command cmd) { + try { return CommandHandler.ExecuteCommand(cmd).message; } - catch (Exception e) - { + catch (Exception e) { return $"Ein Fehler ist aufgetreten: \n {e.Message}"; } } |