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
You can add files like these to your extension's components folder. No need to throw them into the same directories as Pterodactyl does.
Okay thx you ❤️
And to add something to
app/Http/Controllers/Api/Client/ClientController.php
how would it look like? requests/routers/client?
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.blueprint.zip
Powerful, fast and developer-friendly extension framework for Pterodactyl. Utilize extension APIs, inject HTML, modify stylesheets, package extensions and so much more.