Update routes and file paths, fix authentication and security issues
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -104,7 +104,7 @@
|
||||
}).then(async (result) => {
|
||||
if (result.isConfirmed) {
|
||||
try {
|
||||
const response = await fetch(`/dpanel/dashboard/deletefolder/${folderName}`, {
|
||||
const response = await fetch(`/api/dpanel/dashboard/deletefolder/${folderName}`, {
|
||||
method: 'DELETE',
|
||||
});
|
||||
|
||||
@@ -160,7 +160,7 @@
|
||||
}).then(result => {
|
||||
if (result.isConfirmed) {
|
||||
const folderName = result.value.trim();
|
||||
fetch('/dpanel/dashboard/newfolder', {
|
||||
fetch('/api/dpanel/dashboard/newfolder', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
@@ -342,7 +342,7 @@
|
||||
}).then(async (result) => {
|
||||
if (result.isConfirmed) {
|
||||
try {
|
||||
const response = await fetch('/dpanel/dashboard/delete', {
|
||||
const response = await fetch('/api/dpanel/dashboard/delete', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
@@ -405,7 +405,7 @@
|
||||
if (result.isConfirmed) {
|
||||
const newName = result.value;
|
||||
|
||||
fetch(`/dpanel/dashboard/rename/${folderName}`, {
|
||||
fetch(`/api/dpanel/dashboard/rename/${folderName}`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
Reference in New Issue
Block a user