aboutsummaryrefslogtreecommitdiff
path: root/src/controllers/UserController.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/controllers/UserController.php')
-rw-r--r--src/controllers/UserController.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/controllers/UserController.php b/src/controllers/UserController.php
new file mode 100644
index 0000000..39c2be6
--- /dev/null
+++ b/src/controllers/UserController.php
@@ -0,0 +1,18 @@
+<?php
+namespace CamilStaps\BotleaguesApi;
+
+class UserController extends BaseController {
+
+ public function index() {
+ return User::all();
+ }
+
+ public function show($id) {
+ return User::findOrFail($id);
+ }
+
+ public function edit($id) {
+ return $this->response->noContent();
+ }
+
+} \ No newline at end of file