mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Changed feedback url-s #7
This commit is contained in:
parent
c3692d3c52
commit
1791153b89
1 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ import fetch from 'unfetch'
|
||||||
import IrcButton from '../components/IrcButton.js'
|
import IrcButton from '../components/IrcButton.js'
|
||||||
|
|
||||||
import styles from './feedback.module.css'
|
import styles from './feedback.module.css'
|
||||||
// import constants from '../constants.json'
|
import constants from '../constants.json'
|
||||||
|
|
||||||
const results = {
|
const results = {
|
||||||
success: 'SUCCESS',
|
success: 'SUCCESS',
|
||||||
|
@ -68,7 +68,7 @@ export default function Feedback (props) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const rawResponse = await fetch('http://localhost:8080/postfeedback', {
|
const rawResponse = await fetch(constants.apiUrl + 'postfeedback', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Accept': 'application/json',
|
'Accept': 'application/json',
|
||||||
|
@ -94,7 +94,7 @@ export default function Feedback (props) {
|
||||||
const formData = new FormData() // eslint-disable-line
|
const formData = new FormData() // eslint-disable-line
|
||||||
formData.append('file', file)
|
formData.append('file', file)
|
||||||
|
|
||||||
const rawFileResponse = await fetch('http://localhost:8080/postfeedbackfile', {
|
const rawFileResponse = await fetch(constants.apiUrl + 'postfeedbackfile', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Accept': 'application/json'
|
'Accept': 'application/json'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue