diff options
Diffstat (limited to 'src/controllers/BotController.php')
-rw-r--r-- | src/controllers/BotController.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/controllers/BotController.php b/src/controllers/BotController.php new file mode 100644 index 0000000..89aef8c --- /dev/null +++ b/src/controllers/BotController.php @@ -0,0 +1,30 @@ +<?php +namespace CamilStaps\BotleaguesApi\Controllers; + +use CamilStaps\BotleaguesApi\Database\Bot; + +class BotController extends BaseController { + + protected $bot; + + public function __construct(Bot $bot) { + $this->bot = $bot; + } + + public function index() { + return $this->bot->all(); + } + + public function show($id) { + return $this->bot->findOrFail($id); + } + + public function update($id) { + throw new \Exception("Not implemented yet."); + } + + public function store() { + throw new \Exception("Not implemented yet."); + } + +}
\ No newline at end of file |