* @throws \Cake\Datasource\Exception\RecordNotFoundException When record not found.
*/
public function view($id) {
+ $this->request->allowMethod('get');
try {
$connector = $this->Connectors->get($id);
}
catch (\Exception $ex) {
throw new ConnectorNotFoundException("The connector with the id $id does not exist");
- }
+ }
$this->Connectors->delete($connector);
$this->response->statusCode(204);
-
}
}