deuxhuithuit/craft-routes-api

Adds a controller to generate a routes config file.

Installs: 266

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 0

Type:craft-plugin

pkg:composer/deuxhuithuit/craft-routes-api

3.0.0 2024-08-13 18:11 UTC

This package is auto-updated.

Last update: 2025-10-03 15:56:45 UTC


README

Adds a controller to generate a routes config file.

The generated endpoint is /actions/routes-api/routes/get and /actions/routes-api/sites/locales.

Requirements

This plugin requires Craft CMS 5.0 or later, and PHP 8.2 or later.

Installation

You can install this plugin with Composer.

Open your terminal and run the following commands:

# 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