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",
|
"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": "",
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue