diff options
Diffstat (limited to 'app/Controllers/Http/StaticController.js')
-rw-r--r-- | app/Controllers/Http/StaticController.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/Controllers/Http/StaticController.js b/app/Controllers/Http/StaticController.js index 4e604df..7854fd6 100644 --- a/app/Controllers/Http/StaticController.js +++ b/app/Controllers/Http/StaticController.js | |||
@@ -93,14 +93,13 @@ class StaticController { | |||
93 | }); | 93 | }); |
94 | } | 94 | } |
95 | 95 | ||
96 | // Return list of popular recipes (copy of the response Franz's API is returning) | ||
97 | popularRecipes({ | 96 | popularRecipes({ |
98 | response, | 97 | response, |
99 | }) { | 98 | }) { |
100 | return response.send( | 99 | return response.send( |
101 | fs | 100 | fs |
102 | .readJsonSync(path.join( | 101 | .readJsonSync(path.join( |
103 | Helpers.appRoot(), 'officialrecipes', 'recipes', 'all.json', | 102 | Helpers.appRoot(), 'recipes', 'all.json', |
104 | )) | 103 | )) |
105 | .filter((recipe) => recipe.featured), | 104 | .filter((recipe) => recipe.featured), |
106 | ); | 105 | ); |