mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-16 01:34:08 +00:00
Move global reference data to SuperAdmin: - CountriesController, CurrenciesController (not company-scoped) Merge exchange rate operations into ExchangeRateProviderController: - GetAllUsedCurrenciesController -> usedCurrenciesWithoutRate() - BulkExchangeRateController -> bulkUpdate() Consolidate single-action controllers: - DateFormatsController + TimeFormatsController + TimezonesController -> FormatsController - NextNumberController + NumberPlaceholdersController -> SerialNumberController - SearchUsersController merged into SearchController::users()
34 lines
781 B
PHP
34 lines
781 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\V1\Admin\General;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Support\Formatters\DateFormatter;
|
|
use App\Support\Formatters\TimeFormatter;
|
|
use App\Support\Formatters\TimeZones;
|
|
use Illuminate\Http\JsonResponse;
|
|
|
|
class FormatsController extends Controller
|
|
{
|
|
public function dateFormats(): JsonResponse
|
|
{
|
|
return response()->json([
|
|
'date_formats' => DateFormatter::get_list(),
|
|
]);
|
|
}
|
|
|
|
public function timeFormats(): JsonResponse
|
|
{
|
|
return response()->json([
|
|
'time_formats' => TimeFormatter::get_list(),
|
|
]);
|
|
}
|
|
|
|
public function timezones(): JsonResponse
|
|
{
|
|
return response()->json([
|
|
'time_zones' => TimeZones::get_list(),
|
|
]);
|
|
}
|
|
}
|