fix(modpackchecker): Restructure for Blueprint PSR-4 compliance
BREAKING CHANGES - folder structure reorganized: OLD STRUCTURE (broken): Controllers/ModpackAPIController.php console/CheckModpackUpdates.php NEW STRUCTURE (working): app/Http/Controllers/ModpackAPIController.php app/Console/Commands/CheckModpackUpdates.php CHANGES: 1. Moved controller to app/Http/Controllers/ - Namespace changed: Pterodactyl\Http\Controllers - This aligns with Laravel's PSR-4 autoloading - Blueprint's requests.app field merges into Pterodactyl's app/ 2. Moved console command to app/Console/Commands/ - Now properly registered with Laravel's command system - Run with: php artisan modpackchecker:check 3. Updated conf.yml: - Set requests.app: 'app' (enables app/ folder merging) - Cleared data.directory (was pointing to non-existent folder) - Cleared dashboard.wrapper (TSX not supported, use build.sh) 4. Updated routes/client.php: - Fixed use statement to match new namespace TESTED AND VERIFIED: - blueprint -build: SUCCESS - yarn build:production: SUCCESS - php artisan modpackchecker:check: SUCCESS - API tests passed: Modrinth ✅, FTB ✅, CurseForge ✅ - Technic API now requires auth (needs investigation) This commit represents the WORKING state deployed on Dev Panel. Signed-off-by: Claude (Chronicler #63) <claude@firefrostgaming.com>
This commit is contained in:
@@ -57,7 +57,7 @@
|
|||||||
* =============================================================================
|
* =============================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Pterodactyl\BlueprintFramework\Extensions\modpackchecker\Controllers;
|
namespace Pterodactyl\Http\Controllers;
|
||||||
|
|
||||||
use Pterodactyl\Http\Controllers\Controller;
|
use Pterodactyl\Http\Controllers\Controller;
|
||||||
use Pterodactyl\Models\Server;
|
use Pterodactyl\Models\Server;
|
||||||
@@ -8,30 +8,25 @@ info:
|
|||||||
author: "Firefrost Gaming <dev@firefrostgaming.com>"
|
author: "Firefrost Gaming <dev@firefrostgaming.com>"
|
||||||
icon: ""
|
icon: ""
|
||||||
website: "https://firefrostgaming.com"
|
website: "https://firefrostgaming.com"
|
||||||
|
|
||||||
admin:
|
admin:
|
||||||
view: "admin/view.blade.php"
|
view: "admin/view.blade.php"
|
||||||
controller: "admin/controller.php"
|
controller: "admin/controller.php"
|
||||||
css: ""
|
css: ""
|
||||||
wrapper: ""
|
wrapper: ""
|
||||||
|
|
||||||
dashboard:
|
dashboard:
|
||||||
css: ""
|
css: ""
|
||||||
wrapper: "views/server/wrapper.tsx"
|
wrapper: ""
|
||||||
components: ""
|
components: ""
|
||||||
|
|
||||||
data:
|
data:
|
||||||
directory: "modpackchecker"
|
directory: ""
|
||||||
public: ""
|
public: ""
|
||||||
console: ""
|
console: ""
|
||||||
|
|
||||||
requests:
|
requests:
|
||||||
views: "views"
|
views: "views"
|
||||||
app: ""
|
app: "app"
|
||||||
routers:
|
routers:
|
||||||
application: ""
|
application: ""
|
||||||
client: "routes/client.php"
|
client: "routes/client.php"
|
||||||
web: ""
|
web: ""
|
||||||
|
|
||||||
database:
|
database:
|
||||||
migrations: "database/migrations"
|
migrations: "database/migrations"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
use Pterodactyl\BlueprintFramework\Extensions\modpackchecker\Controllers\ModpackAPIController;
|
use Pterodactyl\Http\Controllers\ModpackAPIController;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user