web client v0.7 (edit dish / visibility / delete/ routes)
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user