refactor: Renames recipe route to recipes to be consistent (#3540)

This commit is contained in:
Jarrod Sibbison
2025-07-21 10:06:38 +10:00
committed by GitHub
parent 6cb4b00779
commit 947c2f5248
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ async fn decode_recipe(
pub fn routes(state: Arc<AppState>) -> 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)
+1 -1
View File
@@ -49,7 +49,7 @@ export interface CreateRecipeResponse {
}
export async function createRecipe(request: CreateRecipeRequest): Promise<CreateRecipeResponse> {
const url = getApiUrl('/recipe/create');
const url = getApiUrl('/recipes/create');
console.log('Creating recipe at:', url);
console.log('Request:', JSON.stringify(request, null, 2));