Skip to content

Commit

Permalink
fix: add link to reminders endpoint at api root (#5801)
Browse files Browse the repository at this point in the history
* Add link to reminders endpoint at api root

* fix: add link to reminders endpoint at api root

* add missing name route

Co-authored-by: Alexis Saettler <alexis@saettler.org>
  • Loading branch information
Ian2020 and asbiin authored Jan 1, 2022
1 parent a6e1046 commit 337367a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/Http/Controllers/Api/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public function success()
'journal_url' => route('api.journal'),
'notes_url' => route('api.notes'),
'relationships_url' => route('api.relationships', ['contact' => ':contactId']),
'reminders_url' => route('api.reminders'),
'statistics_url' => route('api.statistics'),
],
]);
Expand Down
3 changes: 2 additions & 1 deletion routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
Route::get('/contacts/{contact}/activities', 'ApiActivitiesController@activities');

// Reminders
Route::apiResource('reminders', 'ApiReminderController');
Route::apiResource('reminders', 'ApiReminderController')
->names(['index' => 'reminders']);
Route::get('/contacts/{contact}/reminders', 'ApiReminderController@reminders');

// Tasks
Expand Down

0 comments on commit 337367a

Please sign in to comment.