diff options
author | kytwb <kytwb@pm.me> | 2022-01-06 23:10:16 +0100 |
---|---|---|
committer | kytwb <kytwb@pm.me> | 2022-01-06 23:10:16 +0100 |
commit | e1cc68d8bf4d473307638607dfee98a90bc7a6be (patch) | |
tree | 0662959ae6b49f54831221c3f0d9cebd71d95a8e /app/Controllers/Http/StaticController.js | |
parent | 1.3.1 (diff) | |
download | ferdium-server-e1cc68d8bf4d473307638607dfee98a90bc7a6be.tar.gz ferdium-server-e1cc68d8bf4d473307638607dfee98a90bc7a6be.tar.zst ferdium-server-e1cc68d8bf4d473307638607dfee98a90bc7a6be.zip |
Review recipes routes, fix download recipe response type
Diffstat (limited to 'app/Controllers/Http/StaticController.js')
-rw-r--r-- | app/Controllers/Http/StaticController.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/app/Controllers/Http/StaticController.js b/app/Controllers/Http/StaticController.js index 7854fd6..aad1059 100644 --- a/app/Controllers/Http/StaticController.js +++ b/app/Controllers/Http/StaticController.js | |||
@@ -93,18 +93,6 @@ class StaticController { | |||
93 | }); | 93 | }); |
94 | } | 94 | } |
95 | 95 | ||
96 | popularRecipes({ | ||
97 | response, | ||
98 | }) { | ||
99 | return response.send( | ||
100 | fs | ||
101 | .readJsonSync(path.join( | ||
102 | Helpers.appRoot(), 'recipes', 'all.json', | ||
103 | )) | ||
104 | .filter((recipe) => recipe.featured), | ||
105 | ); | ||
106 | } | ||
107 | |||
108 | // Show announcements | 96 | // Show announcements |
109 | async announcement({ | 97 | async announcement({ |
110 | response, | 98 | response, |