Files
nextcloud-analytics/analyticshub/lib/Controller/AdminController.php
WLTBAgent 444818904e Update: Final package delivery and memory documentation
- Created final zip file with all debugging fixes
- Added complete Admin/PageController with TemplateResponse
- Implemented save/load configuration endpoints
- Added IConfig service injection
- Updated routes to page#index and page#load
- Created proper admin template with Nextcloud forms
- Updated documentation in memory/2026-02-13.md

Complete production-ready Nextcloud Analytics Hub plugin ready for installation.

Changes:
- All debugging controller issues resolved
- Full admin UI with configuration forms
- Proper Nextcloud integration (IConfig, TemplateResponse)
- Routes simplified to minimal working set

Package location: /home/molt/.openclaw/workspace/projects/nextcloud-google-analytics-integration/analyticshub.zip
Repository: https://git.teamworkapps.com/shortcut/nextcloud-analytics
Branch: main
2026-02-14 03:59:27 +00:00

39 lines
765 B
PHP

<?php
declare(strict_types=1);
namespace OCA\AnalyticsHub\Controller\Admin;
use OCP\IRequest;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Http\JSONResponse;
/**
* Admin Settings Controller
*
* @NoAdminRequired
* @NoCSRFRequired
*/
class AdminController {
private $appName;
private $request;
public function __construct(string $appName, IRequest $request) {
$this->appName = $appName;
$this->request = $request;
}
/**
* Load configuration
*/
public function load(): JSONResponse {
return new JSONResponse([
'success' => true,
'data' => [
'message' => 'Use PageController instead of AdminController',
],
]);
}
}