/
v.bolshakov
/
AIEcosystem-Testing
Обзор
Документация
Войти
/
v.bolshakov
/
AIEcosystem-Testing
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
dev
api/config/urlManager.php
85 строк
5 KB
Developer
Initial commit
03 авг 2026, 17:43
03 авг 2026, 17:43
7433917
Код
Авторство
О чём код?
<?php use yii\web\UrlNormalizer; return [ 'enablePrettyUrl' => true, 'showScriptName' => false, 'normalizer' => [ 'class' => 'yii\web\UrlNormalizer', // use temporary redirection instead of permanent for debugging 'action' => YII_ENV_DEV ? UrlNormalizer::ACTION_REDIRECT_TEMPORARY : UrlNormalizer::ACTION_REDIRECT_PERMANENT, ], 'rules' => [ 'GET <controller:[\w-]+>/amount' => '<controller>/amount', 'GET client/me' => 'client/me', 'GET client/subjectarea' => 'client/subjectarea', 'GET client/vendor' => 'client/vendor', 'GET auth/token' => 'auth/token', 'GET dashport/<action>' => 'dashport/<action>', 'GET users/team' => 'users/team', 'GET common/data' => 'common/data', 'GET users/department' => 'users/department', 'PUT users/language' => 'users/language', 'GET profile/<action>' => 'profile/<action>', 'GET centrifugo/<action>' => 'centrifugo/<action>', 'GET projects-details/<action>' => 'projects-details/<action>', 'GET details/<action>' => 'details/<action>', 'GET project-service/form-data' => 'project-service/form-data', 'GET project-grade/info' => 'project-grade/info', 'GET language/source' => 'language/source', 'GET language/all' => 'language/all', 'GET language/target' => 'language/target', 'GET file/get-from-storage' => 'file/get-from-storage', 'GET file/cat-list' => 'file/cat-list', 'GET file/upload' => 'file/upload', 'POST file/<id>/add-comment' => 'file/add-comment', 'PUT file/done-upload/<id>' => 'file/done-upload', 'DELETE file/remove' => 'file/remove', 'POST project/<id>/cost' => 'project/cost', 'POST project/<id>/clone' => 'project/clone', 'GET mt-project/source' => 'mt-project/source', 'GET mt-project/target' => 'mt-project/target', 'POST mt-project/<id>/<action>' => 'mt-project/<action>', 'PUT project/<id>/zipping' => 'project/zipping', 'PUT project/<id>/unzipping' => 'project/unzipping', 'GET project/<id>/status' => 'project/status', 'PUT dashport-user' => 'dashport-user/update', 'PUT dashport-user-all' => 'dashport-user/update-all', 'GET dashport-user/<code>' => 'dashport-user/view', 'GET client/<c_id>/representative' => 'client/representative/index', 'GET client/<c_id>/representative/<id>' => 'client/representative/view', 'DELETE client/<c_id>/representative/<id>' => 'client/representative/delete', 'POST client/<c_id>/representative' => 'client/representative/create', 'PUT client/<c_id>/representative/<id>' => 'client/representative/update', 'GET project/<c_id>/responsible' => 'project/responsible/index', 'GET project/<c_id>/responsible/<id>' => 'project/responsible/view', 'DELETE project/<c_id>/responsible/<id>' => 'project/responsible/delete', 'POST project/<c_id>/representative' => 'project/responsible/create', 'PUT project/<c_id>/responsible/<id>' => 'project/responsible/update', 'POST open-ai/<action>' => 'open-ai/<action>', 'POST assistant/<action>' => 'assistant/<action>', 'POST client/logo' => 'client/logo', 'DELETE client/logo' => 'client/delete-logo', 'PUT user/username' => 'user/username', 'PUT user/profile' => 'user/profile', 'POST user/avatar' => 'user/avatar', 'DELETE user/avatar' => 'user/delete-avatar', 'PUT user/notify' => 'user/notify', 'GET status' => 'default/status', 'GET synchronization' => 'default/synchronization', '' => 'default/index', 'GET test/<action>' => 'test/<action>', 'GET <controller:[\w-]+>' => '<controller>/index', 'GET <controller:[\w-]+>/<id>' => '<controller>/view', 'DELETE <controller:[\w-]+>/<id>' => '<controller>/delete', 'POST <controller:[\w-]+>' => '<controller>/create', 'PUT <controller:[\w-]+>/<id>' => '<controller>/update', 'OPTIONS <prefix:(.*)?>' => 'default/options', ] ];