aboutsummaryrefslogtreecommitdiff
path: root/src/controllers/BotController.php
blob: 89aef8c64077983e46111321d922510ed1460e81 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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.");
	}

}