]> git.localhorst.tv Git - alttp.git/blob - app/Http/Controllers/TechniqueController.php
cce39cea34f5e628218393d6d5ab04a01b853490
[alttp.git] / app / Http / Controllers / TechniqueController.php
1 <?php
2
3 namespace App\Http\Controllers;
4
5 use App\Models\Technique;
6 use Illuminate\Http\Request;
7
8 class TechniqueController extends Controller
9 {
10
11         public function single(Request $request, Technique $tech) {
12                 $this->authorize('view', $tech);
13                 $tech->load('chapters');
14                 return $tech->toJson();
15         }
16
17 }