/** * 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'); }