MDL-82565 core: Add support for routing of front-end pages

This is the beginning of the end for non-routed pages in Moodle and the
start of SEO-friendly page URLs.

A 'shim' is provided for backwards compatibility.
This commit is contained in:
Andrew Nicols
2025-03-26 21:20:58 +08:00
parent 89d76fdc25
commit 9137558cd5
22 changed files with 664 additions and 90 deletions
@@ -31,6 +31,12 @@ interface route_loader_interface {
/** @var string The route path prefix to use for API calls */
public const ROUTE_GROUP_API = '/api/rest/v2';
/** @var string The route path prefix to use for API calls */
public const ROUTE_GROUP_SHIM = 'shim';
/** @var string The route path prefix to use for API calls */
public const ROUTE_GROUP_PAGE = '/';
/**
* Configure all routes for the Application.
*