mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Merge branch 'master' of gitlab.com:MrFry/qmining-page
This commit is contained in:
commit
38c6f67963
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',
|
||||||
|
@ -72,7 +72,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',
|
||||||
|
@ -98,7 +98,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