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