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

@@ -6,6 +6,7 @@ import { useDispatch, useSelector } from "react-redux";
import { notification } from "../../actions";
import { showBackdrop, hideBackdrop } from "../../actions/toggles.js";
import axios from "axios";
import { backend } from "../../config";
export default function EditRestaurantPhoto(props) {
const {
@@ -49,7 +50,7 @@ export default function EditRestaurantPhoto(props) {
hidden: hidden,
};
axios({
url: "http://localhost:4000/restaurant",
url: backend + "/restaurant",
method: "PUT",
data: data,
headers: {