deuxhuithuit / craft-routes-api
添加一个控制器来生成路由配置文件。
3.0.0
2024-08-13 18:11 UTC
Requires
- php: >=8.2.0
- craftcms/cms: ^5.0.0
Requires (Dev)
- craftcms/ecs: dev-main
- craftcms/phpstan: dev-main
README
添加一个控制器来生成路由配置文件。
生成的端点是 /actions/routes-api/routes/get
和 /actions/routes-api/sites/locales
。
需求
此插件需要 Craft CMS 4.5.0 或更高版本,以及 PHP 8.0.2 或更高版本。
安装
您可以使用 Composer 安装此插件。
打开您的终端并运行以下命令
# go to the project directory cd /path/to/my-project.test # tell Composer to load the plugin composer require deuxhuithuit/craft-routes-api # tell Craft to install the plugin ./craft plugin/install routes-api