diff options
author | Camil Staps | 2015-04-26 23:29:17 +0200 |
---|---|---|
committer | Camil Staps | 2015-04-26 23:29:17 +0200 |
commit | 11a20c5be971d97f4a4f575f91b706791c1893a9 (patch) | |
tree | 9748c5d865005531c074369ee1611ed8e0fa334a /src/controllers/BotController.php | |
parent | user routes (diff) |
Competitions; CompetitionTypes; Participants; better routing; administrators; ...
Diffstat (limited to 'src/controllers/BotController.php')
-rw-r--r-- | src/controllers/BotController.php | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/controllers/BotController.php b/src/controllers/BotController.php index c304d1b..9349ea8 100644 --- a/src/controllers/BotController.php +++ b/src/controllers/BotController.php @@ -3,16 +3,26 @@ namespace CamilStaps\BotleaguesApi; class BotController extends BaseController { + protected $bot; + + public function __construct(Bot $bot) { + $this->bot = $bot; + } + public function index() { - return Bot::all(); + return $this->bot->all(); } public function show($id) { - return Bot::findOrFail($id); + return $this->bot->findOrFail($id); + } + + public function update($id) { + throw new \Exception("Not implemented yet."); } - public function edit($id) { - return $this->response->noContent(); + public function store() { + throw new \Exception("Not implemented yet."); } }
\ No newline at end of file |