deuxhuithuit/craft-routes-api

添加一个控制器来生成路由配置文件。

3.0.0 2024-08-13 18:11 UTC

This package is auto-updated.

Last update: 2024-09-13 18:23:23 UTC


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