diff --git a/crates/goose-server/src/routes/recipe.rs b/crates/goose-server/src/routes/recipe.rs index 871df176b574..19042cd2ef15 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 12cf7962017a..fd01fbe80b3b 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));