21 lines
577 B
PHP
21 lines
577 B
PHP
<?php
|
|
|
|
use MintyPHP\Http\ApiBootstrap;
|
|
use MintyPHP\Http\ApiResponse;
|
|
|
|
ApiBootstrap::init(requireAuth: false);
|
|
ApiResponse::requireMethod('GET');
|
|
|
|
$settingService = app(\MintyPHP\Service\Settings\SettingService::class);
|
|
|
|
header('Cache-Control: public, max-age=60');
|
|
|
|
ApiResponse::success([
|
|
'data' => [
|
|
'app_title' => $settingService->getAppTitle(),
|
|
'app_primary_color' => $settingService->getAppPrimaryColor(),
|
|
'default_theme' => $settingService->getAppTheme(),
|
|
'registration_enabled' => $settingService->isRegistrationEnabled(),
|
|
],
|
|
]);
|