Add /acars/event as alias to /acars/log, and accept event as log line

This commit is contained in:
Nabeel Shahzad
2018-01-28 12:02:41 -06:00
parent 8c3b271294
commit e57f0cb234
3 changed files with 6 additions and 0 deletions

View File

@@ -263,6 +263,10 @@ class PirepController extends RestController
$log['pirep_id'] = $id;
$log['type'] = AcarsType::LOG;
if(array_has($log, 'event')) {
$log['log'] = $log['event'];
}
$acars = Acars::create($log);
$acars->save();
++$count;