mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 02:03:35 -04:00 
			
		
		
		
	Feature/CRF++ and server side locales (#731)
* add universal toast plugin * add server side locales * integrate CRF++ into CI/CD Pipeline * docs(docs): 📝 add recipe parser docs * feat(backend): ✨ Continued work on ingredient parsers * add new model dest * feat(frontend): ✨ New ingredient parser page * formatting Co-authored-by: Hayden <hay-kot@pm.me>
This commit is contained in:
		| @@ -10,7 +10,8 @@ const routes = { | ||||
|   recipesCreateUrl: `${prefix}/recipes/create-url`, | ||||
|   recipesCreateFromZip: `${prefix}/recipes/create-from-zip`, | ||||
|   recipesCategory: `${prefix}/recipes/category`, | ||||
|   recipesParseIngredients: `${prefix}/parse/ingredient`, | ||||
|   recipesParseIngredient: `${prefix}/parser/ingredient`, | ||||
|   recipesParseIngredients: `${prefix}/parser/ingredients`, | ||||
|  | ||||
|   recipesRecipeSlug: (recipe_slug: string) => `${prefix}/recipes/${recipe_slug}`, | ||||
|   recipesRecipeSlugZip: (recipe_slug: string) => `${prefix}/recipes/${recipe_slug}/zip`, | ||||
| @@ -86,4 +87,8 @@ export class RecipeAPI extends BaseCRUDAPI<Recipe, CreateRecipe> { | ||||
|   async parseIngredients(ingredients: Array<string>) { | ||||
|     return await this.requests.post(routes.recipesParseIngredients, { ingredients }); | ||||
|   } | ||||
|  | ||||
|   async parseIngredient(ingredient: string) { | ||||
|     return await this.requests.post(routes.recipesParseIngredient, { ingredient }); | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user