| @@ 68-79 (lines=12) @@ | ||
| 65 | * @param int $id |
|
| 66 | * @return \Illuminate\Http\Response |
|
| 67 | */ |
|
| 68 | public function show($id) |
|
| 69 | { |
|
| 70 | $task = Task::find($id); |
|
| 71 | ||
| 72 | if (!$task) { |
|
| 73 | return $this->respondNotFound('Task does not exsist'); |
|
| 74 | } |
|
| 75 | ||
| 76 | return $this->respond([ |
|
| 77 | 'data' => $this->taskTransformer->transform($task) |
|
| 78 | ]); |
|
| 79 | } |
|
| 80 | ||
| 81 | /** |
|
| 82 | * Show the form for editing the specified resource. |
|
| @@ 72-83 (lines=12) @@ | ||
| 69 | * @param int $id |
|
| 70 | * @return \Illuminate\Http\Response |
|
| 71 | */ |
|
| 72 | public function show($id) |
|
| 73 | { |
|
| 74 | $tag = Tag::find($id); |
|
| 75 | ||
| 76 | if (!$tag) { |
|
| 77 | return $this->respondNotFound('Tag does not exsist'); |
|
| 78 | } |
|
| 79 | ||
| 80 | return $this->respond([ |
|
| 81 | 'data' => $this->tagTransformer->transform($tag) |
|
| 82 | ]); |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * Show the form for editing the specified resource. |
|