diff options
author | vantezzen <properly@protonmail.com> | 2019-09-06 12:18:54 +0200 |
---|---|---|
committer | vantezzen <properly@protonmail.com> | 2019-09-06 12:18:54 +0200 |
commit | f1a0f95d3f238be986478cbcdd5d1f1f9a2fc979 (patch) | |
tree | 787c06ed60cb5b013bcf0da305e097e159c01ace | |
parent | Fix recipe search (diff) | |
download | ferdium-server-f1a0f95d3f238be986478cbcdd5d1f1f9a2fc979.tar.gz ferdium-server-f1a0f95d3f238be986478cbcdd5d1f1f9a2fc979.tar.zst ferdium-server-f1a0f95d3f238be986478cbcdd5d1f1f9a2fc979.zip |
Add information about ferdi:custom
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | app/Controllers/Http/RecipeController.js | 2 |
2 files changed, 5 insertions, 3 deletions
@@ -6,8 +6,7 @@ | |||
6 | Unofficial Franz server replacement for use with the Ferdi Client. | 6 | Unofficial Franz server replacement for use with the Ferdi Client. |
7 | 7 | ||
8 | ## Why use a custom ferdi-server? | 8 | ## Why use a custom ferdi-server? |
9 | A custom ferdi-server allows you to experience the full potential of the Ferdi client. | 9 | 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). |
10 | |||
11 | 10 | ||
12 | ## Features | 11 | ## Features |
13 | - [x] User registration and login | 12 | - [x] User registration and login |
@@ -52,5 +51,8 @@ To add your recipe to ferdi-server, open `http://[YOUR FERDI-SERVER]/new` in you | |||
52 | - `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 | 51 | - `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 |
53 | - `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. | 52 | - `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. |
54 | 53 | ||
54 | ### Listing custom recipes | ||
55 | Inside Ferdi, searching for `ferdi:custom` will list all your custom recipes. | ||
56 | |||
55 | ## License | 57 | ## License |
56 | ferdi-server is licensed under the MIT License | 58 | 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 { | |||
140 | let results; | 140 | let results; |
141 | 141 | ||
142 | if (needle === 'ferdi:custom') { | 142 | if (needle === 'ferdi:custom') { |
143 | const dbResults = (await Recipe.all().fetch()).toJSON(); | 143 | const dbResults = (await Recipe.all()).toJSON(); |
144 | results = dbResults.map((recipe) => ({ | 144 | results = dbResults.map((recipe) => ({ |
145 | id: recipe.recipeId, | 145 | id: recipe.recipeId, |
146 | name: recipe.name, | 146 | name: recipe.name, |