remove domain
This commit is contained in:
parent
a9c69d7aba
commit
d23499e692
@ -30,7 +30,7 @@ export async function getData(quizId: string): Promise<{
|
||||
|
||||
try {
|
||||
const { data, headers } = await axios<GetDataResponse>(
|
||||
`https://s.hbpn.link/answer/settings`,
|
||||
`/answer/settings`,
|
||||
{
|
||||
method: "POST",
|
||||
// headers,
|
||||
@ -74,7 +74,7 @@ export function sendAnswer({ questionId, body, qid }: any) {
|
||||
formData.append("qid", qid);
|
||||
|
||||
return publicationMakeRequest({
|
||||
url: `https://s.hbpn.link/answer/answer`,
|
||||
url: `/answer/answer`,
|
||||
body: formData,
|
||||
method: "POST",
|
||||
});
|
||||
@ -97,7 +97,7 @@ export function sendFile({ questionId, body, qid }: any) {
|
||||
formData.append("qid", qid);
|
||||
|
||||
return publicationMakeRequest({
|
||||
url: `https://s.hbpn.link/answer/answer`,
|
||||
url: `/answer/answer`,
|
||||
body: formData,
|
||||
method: "POST",
|
||||
});
|
||||
@ -141,7 +141,7 @@ export function sendFC({ questionId, body, qid }: any) {
|
||||
formData.append("qid", qid);
|
||||
|
||||
return publicationMakeRequest({
|
||||
url: `https://s.hbpn.link/answer/answer`,
|
||||
url: `/answer/answer`,
|
||||
body: formData,
|
||||
method: "POST",
|
||||
});
|
||||
|
@ -76,7 +76,7 @@ export const Images = ({ currentQuestion }: ImagesProps) => {
|
||||
|
||||
await sendAnswer({
|
||||
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
|
||||
qid: settings.qid
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user