How do I create a custom API route?

I'm making a player manager and I need to create an API route to query the minecraft servers. I also need to add the package "xpaw/php-minecraft-query". Thanks in advance :D EDIT: I figured out how to make routes, but I'm still unsure on how to install packages.
2 Replies
Emma
Emma•7d ago
You'll need to create an install script that adds the package through composer. https://blueprint.zip/docs/?page=documentation/scripts
blueprint.zip
Powerful, fast and developer-friendly extension framework for Pterodactyl. Utilize extension APIs, inject HTML, modify stylesheets, package extensions and so much more.
MinecraftLover
MinecraftLoverOP•5d ago
thanks, i should probably implement that. right now I'm just packaging the vendor folder in the private folder of my extension 😅

Did you find this page helpful?