fix fetch links
This commit is contained in:
parent
60ea16271c
commit
8326e63ef0
|
@ -13,7 +13,7 @@ async function submitIPAction(
|
|||
const data = new FormData();
|
||||
data.append('ipaction', action);
|
||||
data.append('ip', vallist);
|
||||
const resp = await fetch('./api/modtools', {
|
||||
const resp = await fetch('/api/modtools', {
|
||||
credentials: 'include',
|
||||
method: 'POST',
|
||||
body: data,
|
||||
|
@ -26,7 +26,7 @@ async function getModList(
|
|||
) {
|
||||
const data = new FormData();
|
||||
data.append('modlist', true);
|
||||
const resp = await fetch('./api/modtools', {
|
||||
const resp = await fetch('/api/modtools', {
|
||||
credentials: 'include',
|
||||
method: 'POST',
|
||||
body: data,
|
||||
|
@ -44,7 +44,7 @@ async function submitRemMod(
|
|||
) {
|
||||
const data = new FormData();
|
||||
data.append('remmod', userId);
|
||||
const resp = await fetch('./api/modtools', {
|
||||
const resp = await fetch('/api/modtools', {
|
||||
credentials: 'include',
|
||||
method: 'POST',
|
||||
body: data,
|
||||
|
@ -58,7 +58,7 @@ async function submitMakeMod(
|
|||
) {
|
||||
const data = new FormData();
|
||||
data.append('makemod', userName);
|
||||
const resp = await fetch('./api/modtools', {
|
||||
const resp = await fetch('/api/modtools', {
|
||||
credentials: 'include',
|
||||
method: 'POST',
|
||||
body: data,
|
||||
|
|
|
@ -27,7 +27,7 @@ const LogInArea = () => {
|
|||
>
|
||||
{t`I forgot my Password.`}</p>
|
||||
<h2>{t`or login with:`}</h2>
|
||||
<a href="./api/auth/discord">
|
||||
<a href="/api/auth/discord">
|
||||
<img
|
||||
style={logoStyle}
|
||||
width={32}
|
||||
|
@ -35,7 +35,7 @@ const LogInArea = () => {
|
|||
alt="Discord"
|
||||
/>
|
||||
</a>
|
||||
<a href="./api/auth/google">
|
||||
<a href="/api/auth/google">
|
||||
<img
|
||||
style={logoStyle}
|
||||
width={32}
|
||||
|
@ -43,7 +43,7 @@ const LogInArea = () => {
|
|||
alt="Google"
|
||||
/>
|
||||
</a>
|
||||
<a href="./api/auth/facebook">
|
||||
<a href="/api/auth/facebook">
|
||||
<img
|
||||
style={logoStyle}
|
||||
width={32}
|
||||
|
@ -51,7 +51,7 @@ const LogInArea = () => {
|
|||
alt="Facebook"
|
||||
/>
|
||||
</a>
|
||||
<a href="./api/auth/vk">
|
||||
<a href="/api/auth/vk">
|
||||
<img
|
||||
style={logoStyle}
|
||||
width={32}
|
||||
|
@ -59,7 +59,7 @@ const LogInArea = () => {
|
|||
alt="VK"
|
||||
/>
|
||||
</a>
|
||||
<a href="./api/auth/reddit">
|
||||
<a href="/api/auth/reddit">
|
||||
<img
|
||||
style={logoStyle}
|
||||
width={32}
|
||||
|
|
|
@ -33,7 +33,7 @@ async function submitImageAction(
|
|||
data.append('image', file);
|
||||
data.append('canvasid', canvas);
|
||||
data.append('coords', coords);
|
||||
const resp = await fetch('./api/modtools', {
|
||||
const resp = await fetch('/api/modtools', {
|
||||
credentials: 'include',
|
||||
method: 'POST',
|
||||
body: data,
|
||||
|
@ -53,7 +53,7 @@ async function submitProtAction(
|
|||
data.append('canvasid', canvas);
|
||||
data.append('ulcoor', tlcoords);
|
||||
data.append('brcoor', brcoords);
|
||||
const resp = await fetch('./api/modtools', {
|
||||
const resp = await fetch('/api/modtools', {
|
||||
credentials: 'include',
|
||||
method: 'POST',
|
||||
body: data,
|
||||
|
@ -74,7 +74,7 @@ async function submitRollback(
|
|||
data.append('canvasid', canvas);
|
||||
data.append('ulcoor', tlcoords);
|
||||
data.append('brcoor', brcoords);
|
||||
const resp = await fetch('./api/modtools', {
|
||||
const resp = await fetch('/api/modtools', {
|
||||
credentials: 'include',
|
||||
method: 'POST',
|
||||
body: data,
|
||||
|
@ -94,7 +94,7 @@ async function submitCanvasCleaner(
|
|||
data.append('canvasid', canvas);
|
||||
data.append('ulcoor', tlcoords);
|
||||
data.append('brcoor', brcoords);
|
||||
const resp = await fetch('./api/modtools', {
|
||||
const resp = await fetch('/api/modtools', {
|
||||
credentials: 'include',
|
||||
method: 'POST',
|
||||
body: data,
|
||||
|
@ -107,7 +107,7 @@ async function getCleanerStats(
|
|||
) {
|
||||
const data = new FormData();
|
||||
data.append('cleanerstat', true);
|
||||
const resp = await fetch('./api/modtools', {
|
||||
const resp = await fetch('/api/modtools', {
|
||||
credentials: 'include',
|
||||
method: 'POST',
|
||||
body: data,
|
||||
|
@ -125,7 +125,7 @@ async function getCleanerCancel(
|
|||
) {
|
||||
const data = new FormData();
|
||||
data.append('cleanercancel', true);
|
||||
const resp = await fetch('./api/modtools', {
|
||||
const resp = await fetch('/api/modtools', {
|
||||
credentials: 'include',
|
||||
method: 'POST',
|
||||
body: data,
|
||||
|
|
|
@ -31,7 +31,7 @@ async function submitIIDAction(
|
|||
data.append('reason', reason);
|
||||
data.append('time', time);
|
||||
data.append('iid', iid);
|
||||
const resp = await fetch('./api/modtools', {
|
||||
const resp = await fetch('/api/modtools', {
|
||||
credentials: 'include',
|
||||
method: 'POST',
|
||||
body: data,
|
||||
|
|
|
@ -54,7 +54,7 @@ async function submitWatchAction(
|
|||
data.append('time', time);
|
||||
data.append('iid', iid);
|
||||
try {
|
||||
const resp = await fetch('./api/modtools', {
|
||||
const resp = await fetch('/api/modtools', {
|
||||
credentials: 'include',
|
||||
method: 'POST',
|
||||
body: data,
|
||||
|
|
Loading…
Reference in New Issue
Block a user