diff options
author | Sanket Dasgupta <sanketdasgupta@gmail.com> | 2020-05-08 11:18:16 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-08 07:48:16 +0200 |
commit | ab43c12c8416177a5e0c4f4a9bb18e122d02f76d (patch) | |
tree | 536bc246c04d5de537424d3995bbbc22c8ab4617 /app | |
parent | Clean legal docs (diff) | |
download | ferdium-server-ab43c12c8416177a5e0c4f4a9bb18e122d02f76d.tar.gz ferdium-server-ab43c12c8416177a5e0c4f4a9bb18e122d02f76d.tar.zst ferdium-server-ab43c12c8416177a5e0c4f4a9bb18e122d02f76d.zip |
Update featured services in API (#28)
Fixes https://github.com/getferdi/server/issues/27
Diffstat (limited to 'app')
-rw-r--r-- | app/Controllers/Http/StaticController.js | 166 |
1 files changed, 5 insertions, 161 deletions
diff --git a/app/Controllers/Http/StaticController.js b/app/Controllers/Http/StaticController.js index cd38b13..d1a1179 100644 --- a/app/Controllers/Http/StaticController.js +++ b/app/Controllers/Http/StaticController.js | |||
@@ -99,167 +99,11 @@ class StaticController { | |||
99 | popularRecipes({ | 99 | popularRecipes({ |
100 | response, | 100 | response, |
101 | }) { | 101 | }) { |
102 | return response.send([{ | 102 | return response.send( |
103 | author: 'Stefan Malzner <stefan@adlk.io>', | 103 | fs |
104 | featured: false, | 104 | .readJsonSync(path.join( |
105 | id: 'slack', | 105 | Helpers.appRoot(), "officialrecipes", "recipes", "all.json")) |
106 | name: 'Slack', | 106 | .filter((recipe) => recipe.featured)); |
107 | version: '1.0.4', | ||
108 | icons: { | ||
109 | png: 'https://cdn.franzinfra.com/recipes/dist/slack/src/icon.png', | ||
110 | svg: 'https://cdn.franzinfra.com/recipes/dist/slack/src/icon.svg', | ||
111 | }, | ||
112 | }, { | ||
113 | author: 'Stefan Malzner <stefan@adlk.io>', | ||
114 | featured: false, | ||
115 | id: 'whatsapp', | ||
116 | name: 'WhatsApp', | ||
117 | version: '1.0.1', | ||
118 | icons: { | ||
119 | png: 'https://cdn.franzinfra.com/recipes/dist/whatsapp/src/icon.png', | ||
120 | svg: 'https://cdn.franzinfra.com/recipes/dist/whatsapp/src/icon.svg', | ||
121 | }, | ||
122 | }, { | ||
123 | author: 'Stefan Malzner <stefan@adlk.io>', | ||
124 | featured: false, | ||
125 | id: 'messenger', | ||
126 | name: 'Messenger', | ||
127 | version: '1.0.6', | ||
128 | icons: { | ||
129 | png: 'https://cdn.franzinfra.com/recipes/dist/messenger/src/icon.png', | ||
130 | svg: 'https://cdn.franzinfra.com/recipes/dist/messenger/src/icon.svg', | ||
131 | }, | ||
132 | }, { | ||
133 | author: 'Stefan Malzner <stefan@adlk.io>', | ||
134 | featured: false, | ||
135 | id: 'telegram', | ||
136 | name: 'Telegram', | ||
137 | version: '1.0.0', | ||
138 | icons: { | ||
139 | png: 'https://cdn.franzinfra.com/recipes/dist/telegram/src/icon.png', | ||
140 | svg: 'https://cdn.franzinfra.com/recipes/dist/telegram/src/icon.svg', | ||
141 | }, | ||
142 | }, { | ||
143 | author: 'Stefan Malzner <stefan@adlk.io>', | ||
144 | featured: false, | ||
145 | id: 'gmail', | ||
146 | name: 'Gmail', | ||
147 | version: '1.0.0', | ||
148 | icons: { | ||
149 | png: 'https://cdn.franzinfra.com/recipes/dist/gmail/src/icon.png', | ||
150 | svg: 'https://cdn.franzinfra.com/recipes/dist/gmail/src/icon.svg', | ||
151 | }, | ||
152 | }, { | ||
153 | author: 'Stefan Malzner <stefan@adlk.io>', | ||
154 | featured: false, | ||
155 | id: 'skype', | ||
156 | name: 'Skype', | ||
157 | version: '1.0.0', | ||
158 | icons: { | ||
159 | png: 'https://cdn.franzinfra.com/recipes/dist/skype/src/icon.png', | ||
160 | svg: 'https://cdn.franzinfra.com/recipes/dist/skype/src/icon.svg', | ||
161 | }, | ||
162 | }, { | ||
163 | author: 'Stefan Malzner <stefan@adlk.io>', | ||
164 | featured: false, | ||
165 | id: 'hangouts', | ||
166 | name: 'Hangouts', | ||
167 | version: '1.0.0', | ||
168 | icons: { | ||
169 | png: 'https://cdn.franzinfra.com/recipes/dist/hangouts/src/icon.png', | ||
170 | svg: 'https://cdn.franzinfra.com/recipes/dist/hangouts/src/icon.svg', | ||
171 | }, | ||
172 | }, { | ||
173 | author: 'Stefan Malzner <stefan@adlk.io>', | ||
174 | featured: false, | ||
175 | id: 'discord', | ||
176 | name: 'Discord', | ||
177 | version: '1.0.0', | ||
178 | icons: { | ||
179 | png: 'https://cdn.franzinfra.com/recipes/dist/discord/src/icon.png', | ||
180 | svg: 'https://cdn.franzinfra.com/recipes/dist/discord/src/icon.svg', | ||
181 | }, | ||
182 | }, { | ||
183 | author: 'Stefan Malzner <stefan@adlk.io>', | ||
184 | featured: false, | ||
185 | id: 'tweetdeck', | ||
186 | name: 'Tweetdeck', | ||
187 | version: '1.0.1', | ||
188 | icons: { | ||
189 | png: 'https://cdn.franzinfra.com/recipes/dist/tweetdeck/src/icon.png', | ||
190 | svg: 'https://cdn.franzinfra.com/recipes/dist/tweetdeck/src/icon.svg', | ||
191 | }, | ||
192 | }, { | ||
193 | author: 'Stefan Malzner <stefan@adlk.io>', | ||
194 | featured: false, | ||
195 | id: 'hipchat', | ||
196 | name: 'HipChat', | ||
197 | version: '1.0.1', | ||
198 | icons: { | ||
199 | png: 'https://cdn.franzinfra.com/recipes/dist/hipchat/src/icon.png', | ||
200 | svg: 'https://cdn.franzinfra.com/recipes/dist/hipchat/src/icon.svg', | ||
201 | }, | ||
202 | }, { | ||
203 | author: 'Stefan Malzner <stefan@adlk.io>', | ||
204 | featured: false, | ||
205 | id: 'gmailinbox', | ||
206 | name: 'Inbox by Gmail', | ||
207 | version: '1.0.0', | ||
208 | icons: { | ||
209 | png: 'https://cdn.franzinfra.com/recipes/dist/gmailinbox/src/icon.png', | ||
210 | svg: 'https://cdn.franzinfra.com/recipes/dist/gmailinbox/src/icon.svg', | ||
211 | }, | ||
212 | }, { | ||
213 | author: 'Stefan Malzner <stefan@adlk.io>', | ||
214 | featured: false, | ||
215 | id: 'rocketchat', | ||
216 | name: 'Rocket.Chat', | ||
217 | version: '1.0.1', | ||
218 | icons: { | ||
219 | png: 'https://cdn.franzinfra.com/recipes/dist/rocketchat/src/icon.png', | ||
220 | svg: 'https://cdn.franzinfra.com/recipes/dist/rocketchat/src/icon.svg', | ||
221 | }, | ||
222 | }, { | ||
223 | author: 'Brian Gilbert <brian@briangilbert.net>', | ||
224 | featured: false, | ||
225 | id: 'gitter', | ||
226 | name: 'Gitter', | ||
227 | version: '1.0.0', | ||
228 | icons: { | ||
229 | png: 'https://cdn.franzinfra.com/recipes/dist/gitter/src/icon.png', | ||
230 | svg: 'https://cdn.franzinfra.com/recipes/dist/gitter/src/icon.svg', | ||
231 | }, | ||
232 | }, { | ||
233 | author: 'Stefan Malzner <stefan@adlk.io>', | ||
234 | featured: false, | ||
235 | id: 'mattermost', | ||
236 | name: 'Mattermost', | ||
237 | version: '1.0.0', | ||
238 | icons: { | ||
239 | png: 'https://cdn.franzinfra.com/recipes/dist/mattermost/src/icon.png', | ||
240 | svg: 'https://cdn.franzinfra.com/recipes/dist/mattermost/src/icon.svg', | ||
241 | }, | ||
242 | }, { | ||
243 | author: 'Franz <recipe@meetfranz.com>', | ||
244 | featured: false, | ||
245 | id: 'toggl', | ||
246 | name: 'toggl', | ||
247 | version: '1.0.0', | ||
248 | icons: { | ||
249 | png: 'https://cdn.franzinfra.com/recipes/dist/toggl/src/icon.png', | ||
250 | svg: 'https://cdn.franzinfra.com/recipes/dist/toggl/src/icon.svg', | ||
251 | }, | ||
252 | }, { | ||
253 | author: 'Stuart Clark <stuart@realityloop.com>', | ||
254 | featured: false, | ||
255 | id: 'twist', | ||
256 | name: 'twist', | ||
257 | version: '1.0.0', | ||
258 | icons: { | ||
259 | png: 'https://cdn.franzinfra.com/recipes/dist/twist/src/icon.png', | ||
260 | svg: 'https://cdn.franzinfra.com/recipes/dist/twist/src/icon.svg', | ||
261 | }, | ||
262 | }]); | ||
263 | } | 107 | } |
264 | 108 | ||
265 | // Show announcements | 109 | // Show announcements |