Example #1
0
 /**
  * Returns the DELETE response
  *
  * @param \PSX\Record\RecordInterface $record
  * @return array|\PSX\Record\RecordInterface
  */
 protected function doDelete($record)
 {
     $this->routesService->delete((int) $this->getUriFragment('route_id'));
     return array('success' => true, 'message' => 'Routes successful deleted');
 }
Example #2
0
 /**
  * Returns the POST response
  *
  * @param \PSX\Record\RecordInterface $record
  * @return array|\PSX\Record\RecordInterface
  */
 protected function doPost($record)
 {
     $this->routesService->create($record->path, $record->config);
     return array('success' => true, 'message' => 'Route successful created');
 }