Update URL
This commit is contained in:
parent
0bd9c7a348
commit
8e9cffe1af
@ -51,7 +51,7 @@ function App() {
|
||||
|
||||
// Send the input value to Django
|
||||
axios
|
||||
.post("http://localhost:8000/client_api/get_input/", { data })
|
||||
.post("https://dev-iddrs.bicc.de/client_api/get_input/", { data })
|
||||
.then((response) => {
|
||||
setPhrase(data["phrase"]);
|
||||
setResults(response.data.results[0]); // The recived data from this api is a tuple of (results, min_score), thats why we used [0]
|
||||
@ -71,7 +71,7 @@ function App() {
|
||||
setCurrentPage(1) //test
|
||||
// Send the input value to Django
|
||||
axios
|
||||
.post("http://localhost:8000/client_api/get_input/", {
|
||||
.post("https://dev-iddrs.bicc.de/client_api/get_input/", {
|
||||
data: { phrase: value },
|
||||
})
|
||||
.then((response) => {
|
||||
@ -144,7 +144,7 @@ function App() {
|
||||
const handleExportPDF = async () => {
|
||||
setLoading(true);
|
||||
try {
|
||||
const response = await axios.post("http://localhost:8000/client_api/exportPDF/", {
|
||||
const response = await axios.post("https://dev-iddrs.bicc.de/client_api/exportPDF/", {
|
||||
params: {
|
||||
filteredResults: filteredResults, // Replace with the actual filtered results data
|
||||
phrase: phrase, // Replace with the actual phrase data
|
||||
|
Loading…
Reference in New Issue
Block a user