web client v0.7 (edit dish / visibility / delete/ routes)

This commit is contained in:
2020-10-01 20:21:46 +02:00
parent e242e01320
commit 62702521ee
16 changed files with 605 additions and 24 deletions

View File

@@ -24,6 +24,7 @@ import { useSelector, useDispatch } from "react-redux";
import { notification, refreshUserData } from "../../actions";
import { showBackdrop, hideBackdrop } from "../../actions/toggles.js";
import InputWorkingHours from "../Input/InputWorkingHours";
import { backend } from "../../config";
// ICONS
import FastfoodIcon from "@material-ui/icons/Fastfood";
import LocationCityIcon from "@material-ui/icons/LocationCity";
@@ -152,7 +153,7 @@ export default function NewRestaurant() {
};
dispatch(showBackdrop());
axios({
url: "http://localhost:4000/restaurant",
url: backend + "/restaurant",
method: "POST",
data: data,
headers: {