@@ 122-128 (lines=7) @@ | ||
119 | * |
|
120 | * @return void |
|
121 | */ |
|
122 | public function postItem($key) |
|
123 | { |
|
124 | $entry = $this->getRequestBody(); |
|
125 | $item = $this->di->get("rem")->addItem($key, $entry); |
|
126 | $this->di->get("response")->sendJson($item); |
|
127 | exit; |
|
128 | } |
|
129 | ||
130 | ||
131 | /** |
|
@@ 139-145 (lines=7) @@ | ||
136 | * |
|
137 | * @return void |
|
138 | */ |
|
139 | public function putItem($key, $itemId) |
|
140 | { |
|
141 | $entry = $this->getRequestBody(); |
|
142 | $item = $this->di->get("rem")->upsertItem($key, $itemId, $entry); |
|
143 | $this->di->get("response")->sendJson($item); |
|
144 | exit; |
|
145 | } |
|
146 | ||
147 | ||
148 |