Created exercises

- Added endpoint to retrieve the list of exercises
This commit is contained in:
2020-04-26 20:33:09 +01:00
parent cfa0c0ab81
commit 8dbdb24ad6
6 changed files with 123 additions and 3 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Http\Controllers;
use App\Exercise;
class ExerciseController extends Controller
{
/**
* Get the list of exercises
* @return \Illuminate\Http\JsonResponse
*/
public function index() {
return response()->json(Exercise::all());
}
}