added breadcrumbs

This commit is contained in:
2024-08-31 23:41:42 +00:00
parent 89d5975267
commit 39c85aa148
6 changed files with 154 additions and 27 deletions

View File

@@ -12,7 +12,7 @@ export default function files(pterodactyl: any) {
method: "PUT",
headers: await pterodactyl.helpers.authHeader(),
body: JSON.stringify({
root: "/",
root: pterodactyl.workingDirectory,
files: [
{
from: from.attributes.name,
@@ -34,7 +34,7 @@ export default function files(pterodactyl: any) {
async fetchFiles() {
try {
const response = await fetch(
`${process.env.NEXT_PUBLIC_URL}/api/client/servers/${pterodactyl.server_id}/files/list`,
`${process.env.NEXT_PUBLIC_URL}/api/client/servers/${pterodactyl.server_id}/files/list?directory=${pterodactyl.workingDirectory}`,
{
method: "GET",
headers: await pterodactyl.helpers.authHeader(),