julienmonnerie/kirby/config/api/routes.php

30 lines
726 B
PHP
Raw Normal View History

2022-06-17 17:51:59 +02:00
<?php
/**
* Api Routes Definitions
*/
return function ($kirby) {
2025-07-11 14:41:34 +02:00
$routes = [
...include __DIR__ . '/routes/auth.php',
...include __DIR__ . '/routes/changes.php',
...include __DIR__ . '/routes/pages.php',
...include __DIR__ . '/routes/roles.php',
...include __DIR__ . '/routes/site.php',
...include __DIR__ . '/routes/users.php',
...include __DIR__ . '/routes/files.php',
...include __DIR__ . '/routes/system.php',
...include __DIR__ . '/routes/translations.php'
];
2022-06-17 17:51:59 +02:00
2022-08-31 15:02:43 +02:00
// only add the language routes if the
// multi language setup is activated
if ($kirby->option('languages', false) !== false) {
2025-07-11 14:41:34 +02:00
$routes = [
...$routes,
...include __DIR__ . '/routes/languages.php'
];
2022-08-31 15:02:43 +02:00
}
2022-06-17 17:51:59 +02:00
2022-08-31 15:02:43 +02:00
return $routes;
2022-06-17 17:51:59 +02:00
};