diff options
author | Camil Staps | 2015-02-21 13:45:31 +0100 |
---|---|---|
committer | Camil Staps | 2015-02-21 13:45:31 +0100 |
commit | 1608adfa7bfbf027bddffe4051637bf65ce03622 (patch) | |
tree | 32bf7e57e2cb0b015a1a479e5bd2deb2664e8948 /src/controllers/BotController.php | |
parent | added migrations, created basic app relying on dingo (diff) |
Basic controllers and authentication
Diffstat (limited to 'src/controllers/BotController.php')
-rw-r--r-- | src/controllers/BotController.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/controllers/BotController.php b/src/controllers/BotController.php new file mode 100644 index 0000000..c304d1b --- /dev/null +++ b/src/controllers/BotController.php @@ -0,0 +1,18 @@ +<?php +namespace CamilStaps\BotleaguesApi; + +class BotController extends BaseController { + + public function index() { + return Bot::all(); + } + + public function show($id) { + return Bot::findOrFail($id); + } + + public function edit($id) { + return $this->response->noContent(); + } + +}
\ No newline at end of file |