Skip to content

Commit 7becb2b

Browse files
committed
revert removal id parameter in ResourceController
1 parent ad4c920 commit 7becb2b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

system/RESTful/ResourceController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function index()
9393
*
9494
* @return array an array
9595
*/
96-
public function show()
96+
public function show($id = null)
9797
{
9898
return $this->fail(lang('RESTful.notImplemented', ['show']), 501);
9999
}
@@ -123,7 +123,7 @@ public function create()
123123
*
124124
* @return array an array
125125
*/
126-
public function edit()
126+
public function edit($id = null)
127127
{
128128
return $this->fail(lang('RESTful.notImplemented', ['edit']), 501);
129129
}
@@ -133,7 +133,7 @@ public function edit()
133133
*
134134
* @return array an array
135135
*/
136-
public function update()
136+
public function update($id = null)
137137
{
138138
return $this->fail(lang('RESTful.notImplemented', ['update']), 501);
139139
}
@@ -143,7 +143,7 @@ public function update()
143143
*
144144
* @return array an array
145145
*/
146-
public function delete()
146+
public function delete($id = null)
147147
{
148148
return $this->fail(lang('RESTful.notImplemented', ['delete']), 501);
149149
}

0 commit comments

Comments
 (0)