Skip to content

DeuxHuitHuit/craft-routes-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Craft CMS: Routes API

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 4.5.0 or later, and PHP 8.0.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