aboutsummaryrefslogtreecommitdiff
path: root/src/controllers/BotController.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/controllers/BotController.php')
-rw-r--r--src/controllers/BotController.php18
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