From f1a0f95d3f238be986478cbcdd5d1f1f9a2fc979 Mon Sep 17 00:00:00 2001 From: vantezzen Date: Fri, 6 Sep 2019 12:18:54 +0200 Subject: Add information about ferdi:custom --- README.md | 6 ++++-- app/Controllers/Http/RecipeController.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3e6beed..b3ae79d 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,7 @@ Unofficial Franz server replacement for use with the Ferdi Client. ## Why use a custom ferdi-server? -A custom ferdi-server allows you to experience the full potential of the Ferdi client. - +A custom ferdi-server allows you to experience the full potential of the Ferdi client. It allows you to use all Premium features (e.g. Workspaces and custom URL recipes) and [adding your own recipes](#creating-and-using-custom-recipes). ## Features - [x] User registration and login @@ -52,5 +51,8 @@ To add your recipe to ferdi-server, open `http://[YOUR FERDI-SERVER]/new` in you - `Link to PNG/SVG image`: Direct link to a 1024x1024 PNG image and SVG that is used as a logo inside the store. Please use jsDelivr when using a file uploaded to GitHub as raw.githubusercontent files won't load - `Recipe files`: Recipe files that you created using the [Franz recipe creation guide](https://github.com/meetfranz/plugins/blob/master/docs/integration.md). Please do *not* package your files beforehand - upload the raw files (you can drag and drop multiple files). ferdi-server will automatically package and store the recipe in the right format. Please also do not drag and drop or select the whole folder, select the individual files. +### Listing custom recipes +Inside Ferdi, searching for `ferdi:custom` will list all your custom recipes. + ## License ferdi-server is licensed under the MIT License diff --git a/app/Controllers/Http/RecipeController.js b/app/Controllers/Http/RecipeController.js index 1905886..880f0c3 100644 --- a/app/Controllers/Http/RecipeController.js +++ b/app/Controllers/Http/RecipeController.js @@ -140,7 +140,7 @@ class RecipeController { let results; if (needle === 'ferdi:custom') { - const dbResults = (await Recipe.all().fetch()).toJSON(); + const dbResults = (await Recipe.all()).toJSON(); results = dbResults.map((recipe) => ({ id: recipe.recipeId, name: recipe.name, -- cgit v1.2.3-54-g00ecf