mirror of
https://github.com/grocy/grocy.git
synced 2026-04-04 11:56:16 +02:00
Update routes.php
Added sub feature FEATURE_FLAG_RECIPES_MEALPLAN
This commit is contained in:
parent
efc7b999bb
commit
ab734d8836
|
|
@ -87,9 +87,12 @@ $app->group('', function (RouteCollectorProxy $group) {
|
||||||
$group->get('/recipes', '\Grocy\Controllers\RecipesController:Overview');
|
$group->get('/recipes', '\Grocy\Controllers\RecipesController:Overview');
|
||||||
$group->get('/recipe/{recipeId}', '\Grocy\Controllers\RecipesController:RecipeEditForm');
|
$group->get('/recipe/{recipeId}', '\Grocy\Controllers\RecipesController:RecipeEditForm');
|
||||||
$group->get('/recipe/{recipeId}/pos/{recipePosId}', '\Grocy\Controllers\RecipesController:RecipePosEditForm');
|
$group->get('/recipe/{recipeId}/pos/{recipePosId}', '\Grocy\Controllers\RecipesController:RecipePosEditForm');
|
||||||
$group->get('/mealplan', '\Grocy\Controllers\RecipesController:MealPlan');
|
if (GROCY_FEATURE_FLAG_RECIPES_MEALPLAN)
|
||||||
$group->get('/mealplansections', '\Grocy\Controllers\RecipesController:MealPlanSectionsList');
|
{
|
||||||
$group->get('/mealplansection/{sectionId}', '\Grocy\Controllers\RecipesController:MealPlanSectionEditForm');
|
$group->get('/mealplan', '\Grocy\Controllers\RecipesController:MealPlan');
|
||||||
|
$group->get('/mealplansections', '\Grocy\Controllers\RecipesController:MealPlanSectionsList');
|
||||||
|
$group->get('/mealplansection/{sectionId}', '\Grocy\Controllers\RecipesController:MealPlanSectionEditForm');
|
||||||
|
}
|
||||||
$group->get('/recipessettings', '\Grocy\Controllers\RecipesController:RecipesSettings');
|
$group->get('/recipessettings', '\Grocy\Controllers\RecipesController:RecipesSettings');
|
||||||
$group->get('/recipe/{recipeId}/grocycode', '\Grocy\Controllers\RecipesController:RecipeGrocycodeImage');
|
$group->get('/recipe/{recipeId}/grocycode', '\Grocy\Controllers\RecipesController:RecipeGrocycodeImage');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user