. */ declare(strict_types=1); namespace FireflyIII\Api\V1\Controllers; use FireflyIII\User; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; class RecurrenceController { public function __construct() { parent::__construct(); $this->middleware( function ($request, $next) { /** @var User $user */ $user = auth()->user(); // todo add local repositories. return $next($request); } ); } /** * Delete the resource. * * @param string $object * * @return JsonResponse */ public function delete(string $object): JsonResponse { // todo delete object. return response()->json([], 204); } /** * List all of them. * * @param Request $request * * @return JsonResponse] */ public function index(Request $request): JsonResponse { // todo implement. } /** * List single resource. * * @param Request $request * @param string $object * * @return JsonResponse */ public function show(Request $request, string $object): JsonResponse { // todo implement me. } /** * Store new object. * * @param Request $request * * @return JsonResponse */ public function store(Request $request): JsonResponse { // todo replace code and replace request object. } /** * @param Request $request * @param string $object * * @return JsonResponse */ public function update(Request $request, string $object): JsonResponse { // todo replace code and replace request object. } }