From 0303c2ab04594f5cbcca084b7dd857c3ddf8f90c Mon Sep 17 00:00:00 2001 From: jmarinm Date: Thu, 7 Jul 2022 10:36:51 -0500 Subject: [PATCH] URL fix --- src/App.js | 2 +- src/BookForm.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index c647c1c..91424cd 100644 --- a/src/App.js +++ b/src/App.js @@ -3,7 +3,7 @@ import Book from './Book' import BookForm from './BookForm' -const API_URL = 'https://shark.ontrack.global'; +const API_URL = 'https://shark.ontrack.global/api'; //const API_URL = 'http://localhost:8080'; const App = () => { diff --git a/src/BookForm.jsx b/src/BookForm.jsx index 6741120..f52d63a 100644 --- a/src/BookForm.jsx +++ b/src/BookForm.jsx @@ -2,7 +2,7 @@ import React from "react"; import { useState } from "react"; const BookForm = () => { - const API_URL = 'https://shark.ontrack.global'; + const API_URL = 'https://shark.ontrack.global/api'; const [form, setForm] = useState({author: '', title:'', description: '', subject: '', year: ''}); const handleChange = (e) =>{