This commit is contained in:
fred 2025-07-08 15:42:28 -07:00
parent c8d58db08a
commit 6af9d8619f
6 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"dev": "node server.js" "dev": "node backendServer.js"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",

View file

@ -1,5 +1,5 @@
import React, { useState } from 'react'; import React, { useState } from 'react';
import { addRecipe } from "../services/backend.js"; import { addRecipe } from "../services/frontendApi.js";
import { useNavigate } from "react-router-dom"; import { useNavigate } from "react-router-dom";
function AddRecipe() { function AddRecipe() {

View file

@ -1,6 +1,6 @@
import CookbookRecipeTile from "../components/CookbookRecipeTile.tsx" import CookbookRecipeTile from "../components/CookbookRecipeTile.tsx"
import { useState, useEffect } from "react"; import { useState, useEffect } from "react";
import { getRecipes, deleteRecipe } from "../services/backend.js"; import { getRecipes, deleteRecipe } from "../services/frontendApi.js";
import { type Recipe } from "../types/Recipe" import { type Recipe } from "../types/Recipe"
function Cookbook() { function Cookbook() {

View file

@ -1,7 +1,7 @@
import RecipeCard from "../components/RecipeCard.tsx" import RecipeCard from "../components/RecipeCard.tsx"
import { useParams } from "react-router-dom"; import { useParams } from "react-router-dom";
import { useState, useEffect } from "react"; import { useState, useEffect } from "react";
import { getRecipeById } from "../services/backend.js"; import { getRecipeById } from "../services/frontendApi.js";
import { type Recipe } from "../types/Recipe" import { type Recipe } from "../types/Recipe"
function RecipePage() { function RecipePage() {