From 324e96b48f85153be6abb9b7bdebb945fb2aa0c0 Mon Sep 17 00:00:00 2001 From: Vincent Jousse Date: Fri, 22 Nov 2013 23:49:02 +0100 Subject: [PATCH] Fix typo --- app/controllers/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api.php b/app/controllers/api.php index 1df215c..da4b8ba 100644 --- a/app/controllers/api.php +++ b/app/controllers/api.php @@ -6,7 +6,7 @@ $api->get('/', function () { return 'API home page'; }); $api->get('/entries', function () use ($app) { $entries = $app['entry_api']->getEntries(); - return $app->json($entry, 200); + return $app->json($entries, 200); }); return $api;