diff options
Diffstat (limited to 'routes/note.php')
| -rw-r--r-- | routes/note.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/note.php b/routes/note.php index 4e0f867..071c86c 100644 --- a/routes/note.php +++ b/routes/note.php @@ -4,13 +4,13 @@ use Digitigrade\HttpResponseStatus\NotFound; use Digitigrade\Model\Note; use Digitigrade\Router; -Router::getInstance()->mount('/post/:id', function (array $args) { +Router::getInstance()->mount('/note/:id', function (array $args) { $note = Note::find($args['id']); if ($note == null || $note->deleted) { throw new NotFound("i don't know that note"); } if (!$note->author->isLocal) { - throw new NotFound("i don't want to tell you about non local posts sorry"); + throw new NotFound("i don't want to tell you about non local notes sorry"); } json_response($note); }); |
