Commit Graph
2 Commits
Author SHA1 Message Date
Divarion_D 653fd00c18 refactor(reseller): split ResellerApiDispatcher into Reseller\Ajax controllers
The reseller panel's api?action=… handlers lived in one 1300-line
Infrastructure class behind ResellerApiController. They are HTTP handlers,
so they now sit under Public/Controllers/Reseller/Ajax, one controller per
group (stats, lines, devices, users, streams, activation codes), and are
registered with $router->api() as the admin panel's are. Handler bodies
moved verbatim; BaseResellerAjaxController::begin() keeps the guards the
single endpoint applied to every action. An unknown action now answers
{"result":false} from ResellerApiController.

Tests reach the actions through routes/reseller.php and dispatchApi()
(tests/Support/ResellerAjax). The old file is dropped from the LB strip
list and recorded in deleted_files.txt.
2026-10-16 19:28:11 +03:00
obscuremind e551ba21de fix(reseller): make credits atomic and hold resellers to their tree, packages and trials 2026-10-06 00:41:59 +00:00