remove domain
This commit is contained in:
parent
a9c69d7aba
commit
d23499e692
@ -30,7 +30,7 @@ export async function getData(quizId: string): Promise<{
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const { data, headers } = await axios<GetDataResponse>(
|
const { data, headers } = await axios<GetDataResponse>(
|
||||||
`https://s.hbpn.link/answer/settings`,
|
`/answer/settings`,
|
||||||
{
|
{
|
||||||
method: "POST",
|
method: "POST",
|
||||||
// headers,
|
// headers,
|
||||||
@ -74,7 +74,7 @@ export function sendAnswer({ questionId, body, qid }: any) {
|
|||||||
formData.append("qid", qid);
|
formData.append("qid", qid);
|
||||||
|
|
||||||
return publicationMakeRequest({
|
return publicationMakeRequest({
|
||||||
url: `https://s.hbpn.link/answer/answer`,
|
url: `/answer/answer`,
|
||||||
body: formData,
|
body: formData,
|
||||||
method: "POST",
|
method: "POST",
|
||||||
});
|
});
|
||||||
@ -97,7 +97,7 @@ export function sendFile({ questionId, body, qid }: any) {
|
|||||||
formData.append("qid", qid);
|
formData.append("qid", qid);
|
||||||
|
|
||||||
return publicationMakeRequest({
|
return publicationMakeRequest({
|
||||||
url: `https://s.hbpn.link/answer/answer`,
|
url: `/answer/answer`,
|
||||||
body: formData,
|
body: formData,
|
||||||
method: "POST",
|
method: "POST",
|
||||||
});
|
});
|
||||||
@ -141,7 +141,7 @@ export function sendFC({ questionId, body, qid }: any) {
|
|||||||
formData.append("qid", qid);
|
formData.append("qid", qid);
|
||||||
|
|
||||||
return publicationMakeRequest({
|
return publicationMakeRequest({
|
||||||
url: `https://s.hbpn.link/answer/answer`,
|
url: `/answer/answer`,
|
||||||
body: formData,
|
body: formData,
|
||||||
method: "POST",
|
method: "POST",
|
||||||
});
|
});
|
||||||
|
@ -76,7 +76,7 @@ export const Images = ({ currentQuestion }: ImagesProps) => {
|
|||||||
|
|
||||||
await sendAnswer({
|
await sendAnswer({
|
||||||
questionId: currentQuestion.id,
|
questionId: currentQuestion.id,
|
||||||
body: `${currentQuestion.content.variants[index].answer} <img style="width:100%; max-width:250px; max-height:250px" src="${currentQuestion.content.variants[index].extendedText}"/>`,
|
body: `${currentQuestion.content.variants[index].answer} <img style="width:100%; max-width:250px; max-height:250px" src="https://hbpn.link/${currentQuestion.content.variants[index].extendedText}"/>`,
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
qid: settings.qid
|
qid: settings.qid
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user