aboutsummaryrefslogtreecommitdiffstats
path: root/src/internal-server
diff options
context:
space:
mode:
authorLibravatar kytwb <kytwb@pm.me>2022-01-06 23:42:11 +0100
committerLibravatar kytwb <kytwb@pm.me>2022-01-06 23:42:11 +0100
commitcd6a573617e85f901a431ebf9216a5c4ca97ed3b (patch)
tree931cf27a4a6b147932aed19131e3529b27d9f0e3 /src/internal-server
parent5.6.9-nightly.1 [skip ci] (diff)
downloadferdium-app-cd6a573617e85f901a431ebf9216a5c4ca97ed3b.tar.gz
ferdium-app-cd6a573617e85f901a431ebf9216a5c4ca97ed3b.tar.zst
ferdium-app-cd6a573617e85f901a431ebf9216a5c4ca97ed3b.zip
Review recipes routes
Diffstat (limited to 'src/internal-server')
-rw-r--r--src/internal-server/app/Controllers/Http/ServiceController.js4
-rw-r--r--src/internal-server/start/routes.js6
2 files changed, 2 insertions, 8 deletions
diff --git a/src/internal-server/app/Controllers/Http/ServiceController.js b/src/internal-server/app/Controllers/Http/ServiceController.js
index 54cc69eb0..e8c94c25f 100644
--- a/src/internal-server/app/Controllers/Http/ServiceController.js
+++ b/src/internal-server/app/Controllers/Http/ServiceController.js
@@ -278,10 +278,6 @@ class ServiceController {
278 return response.send(servicesArray); 278 return response.send(servicesArray);
279 } 279 }
280 280
281 update({ response }) {
282 return response.send([]);
283 }
284
285 async delete({ params, response }) { 281 async delete({ params, response }) {
286 // Update data in database 282 // Update data in database
287 await Service.query().where('serviceId', params.id).delete(); 283 await Service.query().where('serviceId', params.id).delete();
diff --git a/src/internal-server/start/routes.js b/src/internal-server/start/routes.js
index 25ebed8ae..c8cab2164 100644
--- a/src/internal-server/start/routes.js
+++ b/src/internal-server/start/routes.js
@@ -50,13 +50,11 @@ Route.group(() => {
50 Route.get('me/services', 'ServiceController.list'); 50 Route.get('me/services', 'ServiceController.list');
51 51
52 // Recipe store 52 // Recipe store
53 Route.get('recipe', 'ServiceController.list');
54 Route.post('recipes/update', 'ServiceController.update');
55 Route.get('recipes', 'RecipeController.list'); 53 Route.get('recipes', 'RecipeController.list');
56 Route.get('recipes/download/:recipe', 'RecipeController.download');
57 Route.get('recipes/search', 'RecipeController.search'); 54 Route.get('recipes/search', 'RecipeController.search');
58 Route.get('recipes/popular', 'RecipeController.popularRecipes'); 55 Route.get('recipes/popular', 'RecipeController.popularRecipes');
59 Route.get('recipes/update', 'RecipeController.update'); 56 Route.get('recipes/download/:recipe', 'RecipeController.download');
57 Route.post('recipes/update', 'RecipeController.update');
60 58
61 // Workspaces 59 // Workspaces
62 Route.put('workspace/:id', 'WorkspaceController.edit'); 60 Route.put('workspace/:id', 'WorkspaceController.edit');