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

@@ -23,6 +23,7 @@ import { showBackdrop, hideBackdrop } from "../../actions/toggles.js";
import { prepareTags } from "../../Services.js";
import axios from "axios";
import PasswordConfirmation from "../Dialogs/PasswordConfirmation";
import { backend } from "../../config";
const useStyles = makeStyles((theme) => ({
textInput: {
@@ -174,7 +175,7 @@ export default function EditRestaurantInfo(props) {
};
dispatch(showBackdrop());
axios({
url: "http://localhost:4000/restaurant",
url: backend + "/restaurant",
method: "PUT",
data: data,
headers: {