swr Api

resources/scripts/api/swr/API.ts How can I add an api in that directory? I haven't seen in the docs, how to do it.
4 Replies
Emma
Emma3mo ago
You can add files like these to your extension's components folder. No need to throw them into the same directories as Pterodactyl does.
César
CésarOP3mo ago
Okay thx you ❤️ And to add something to app/Http/Controllers/Api/Client/ClientController.php how would it look like? requests/routers/client?
Emma
Emma3mo ago
You bind your requests: routers: client option to a php file where you throw the routes in. Then for controllers you can use the requests: app option to a directory where you can throw your controllers.
Emma
Emma3mo ago
blueprint.zip
Powerful, fast and developer-friendly extension framework for Pterodactyl. Utilize extension APIs, inject HTML, modify stylesheets, package extensions and so much more.

Did you find this page helpful?