Skip to content

Commit

Permalink
return id field on POST success
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-lang committed Jan 6, 2015
1 parent 4267e32 commit 58ee661
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@

else
{
$id = $result;
$result = ArrestDB::$HTTP[201];
$result['id'] = (int)$id;
}
}

Expand Down

0 comments on commit 58ee661

Please sign in to comment.