How do I use the elementapi to get the list of entries for the logged in user?
I've tried a couple of options to no avail, like
'api/v1/user/<userId:\d+>.json' => function($userId) {
$author = craft()->users->getUserById($userId);
return [
'elementType' => 'Entry',
'criteria' => [
'section' => 'jobs',
'author' => $author
],
...
as an example of one I thought should have worked but it just returns everything.