/
mikopbx
/
ModuleVietnameseLanguagePack
Обзор
Документация
Войти
/
mikopbx
/
ModuleVietnameseLanguagePack
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
master
Lib/VietnameseLanguagePackConf.php
49 строк
2 KB
Nikolai Beketov
feat(ui): add sound files browser with conversion progress
04 май 2026, 13:06
04 май 2026, 13:06
4953491
Код
Авторство
О чём код?
<?php declare(strict_types=1); /* * MikoPBX - free phone system for small business * Copyright © 2017-2026 Alexey Portnov and Nikolay Beketov * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with this program. * If not, see <https://www.gnu.org/licenses/>. */ namespace Modules\ModuleVietnameseLanguagePack\Lib; use MikoPBX\Modules\Config\ConfigClass; use Modules\ModuleVietnameseLanguagePack\Lib\RestAPI\Controllers\SoundsController; /** * VietnameseLanguagePackConf * * Wires the per-module REST endpoints (sounds inventory + conversion progress). */ class VietnameseLanguagePackConf extends ConfigClass { public const string ROUTE_PREFIX = '/pbxcore/api/v3/module-vietnamese-language-pack'; /** * Register module REST routes (Pattern 2: ConfigClass-based). * * @return array<int, array{0: class-string, 1: string, 2: string, 3: string, 4: string, 5: bool}> */ public function getPBXCoreRESTAdditionalRoutes(): array { return [ [SoundsController::class, 'listAction', self::ROUTE_PREFIX . '/sounds', 'get', '/', false], [SoundsController::class, 'progressAction', self::ROUTE_PREFIX . '/sounds/progress', 'get', '/', false], ]; } }