added breadcrumbs
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user