init with kirby, vue and pagedjs interactive
This commit is contained in:
commit
dc0ae26464
968 changed files with 211706 additions and 0 deletions
29
public/kirby/config/api/routes.php
Normal file
29
public/kirby/config/api/routes.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Api Routes Definitions
|
||||
*/
|
||||
return function ($kirby) {
|
||||
$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'
|
||||
];
|
||||
|
||||
// only add the language routes if the
|
||||
// multi language setup is activated
|
||||
if ($kirby->option('languages', false) !== false) {
|
||||
$routes = [
|
||||
...$routes,
|
||||
...include __DIR__ . '/routes/languages.php'
|
||||
];
|
||||
}
|
||||
|
||||
return $routes;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue