From 11a20c5be971d97f4a4f575f91b706791c1893a9 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sun, 26 Apr 2015 23:29:17 +0200 Subject: Competitions; CompetitionTypes; Participants; better routing; administrators; ... --- src/controllers/BotController.php | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'src/controllers/BotController.php') 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 -- cgit v1.2.3