Hi,
I'm currently creating a module which automatically provisions a server in game server panel when a customer purchases a service in Blesta.
This module sends a "server creation" request to a game server panel's API endpoint but this endpoint is asynchronous and just responses to the request with a running task ID. After server is created, the game server panel API will send another POST request which includes a server ID to a specific callback URL later.
To receive the server ID, I would like to use Appcontroller.preAction event handler in module but is it even possible?
I came up with the idea of creating a plugin only for receiving a server ID, but I feel having to enable both module and plugin is not a nice implementation. If anyone has any clean idea to make my dream come true, most welcomed.
Thanks,