reorg
This commit is contained in:
parent
c8d58db08a
commit
6af9d8619f
6 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
|||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"dev": "node server.js"
|
||||
"dev": "node backendServer.js"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import React, { useState } from 'react';
|
||||
import { addRecipe } from "../services/backend.js";
|
||||
import { addRecipe } from "../services/frontendApi.js";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
|
||||
function AddRecipe() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import CookbookRecipeTile from "../components/CookbookRecipeTile.tsx"
|
||||
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"
|
||||
|
||||
function Cookbook() {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import RecipeCard from "../components/RecipeCard.tsx"
|
||||
import { useParams } from "react-router-dom";
|
||||
import { useState, useEffect } from "react";
|
||||
import { getRecipeById } from "../services/backend.js";
|
||||
import { getRecipeById } from "../services/frontendApi.js";
|
||||
import { type Recipe } from "../types/Recipe"
|
||||
|
||||
function RecipePage() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue