From 947c2f5248b46938b6148ce1df7cde1995faa3a0 Mon Sep 17 00:00:00 2001 From: Jarrod Sibbison <72240382+jsibbison-square@users.noreply.github.com> Date: Mon, 21 Jul 2025 10:06:38 +1000 Subject: [PATCH] refactor: Renames recipe route to recipes to be consistent (#3540) --- crates/goose-server/src/routes/recipe.rs | 2 +- ui/desktop/src/recipe/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/goose-server/src/routes/recipe.rs b/crates/goose-server/src/routes/recipe.rs index 871df176..19042cd2 100644 --- a/crates/goose-server/src/routes/recipe.rs +++ b/crates/goose-server/src/routes/recipe.rs @@ -131,7 +131,7 @@ async fn decode_recipe( pub fn routes(state: Arc) -> Router { Router::new() - .route("/recipe/create", post(create_recipe)) + .route("/recipes/create", post(create_recipe)) .route("/recipes/encode", post(encode_recipe)) .route("/recipes/decode", post(decode_recipe)) .with_state(state) diff --git a/ui/desktop/src/recipe/index.ts b/ui/desktop/src/recipe/index.ts index 12cf7962..fd01fbe8 100644 --- a/ui/desktop/src/recipe/index.ts +++ b/ui/desktop/src/recipe/index.ts @@ -49,7 +49,7 @@ export interface CreateRecipeResponse { } export async function createRecipe(request: CreateRecipeRequest): Promise { - const url = getApiUrl('/recipe/create'); + const url = getApiUrl('/recipes/create'); console.log('Creating recipe at:', url); console.log('Request:', JSON.stringify(request, null, 2));