web client v0.7 (edit dish / visibility / delete/ routes)
This commit is contained in:
@@ -5,6 +5,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 EditRestaurantLocation(props) {
|
||||
const {
|
||||
@@ -52,7 +53,7 @@ export default function EditRestaurantLocation(props) {
|
||||
hidden: hidden,
|
||||
};
|
||||
axios({
|
||||
url: "http://localhost:4000/restaurant",
|
||||
url: backend + "/restaurant",
|
||||
method: "PUT",
|
||||
data: data,
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user