aboutsummaryrefslogtreecommitdiffstats
path: root/app/Controllers/Http/StaticController.js
diff options
context:
space:
mode:
authorLibravatar kytwb <kytwb@pm.me>2021-12-31 13:00:14 +0100
committerLibravatar kytwb <kytwb@pm.me>2021-12-31 13:00:14 +0100
commite4a7fcbde65f399bc09065890cad750e40d1568e (patch)
treeb8886c7a47df34a6df09a86aba0f7babe82e6cb3 /app/Controllers/Http/StaticController.js
parentAdd DigitalOcean refcode (diff)
downloadferdium-server-e4a7fcbde65f399bc09065890cad750e40d1568e.tar.gz
ferdium-server-e4a7fcbde65f399bc09065890cad750e40d1568e.tar.zst
ferdium-server-e4a7fcbde65f399bc09065890cad750e40d1568e.zip
Remove calls to Franz infra for recipes
Diffstat (limited to 'app/Controllers/Http/StaticController.js')
-rw-r--r--app/Controllers/Http/StaticController.js3
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 );