Personal Website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.6 KiB

<?php
use \App\Classes\Router;
Router::resource('/admin/config', 'CrudController');
Router::resource('/admin/section', 'CrudController');
Router::resource('/admin/page', 'CrudController');
Router::resource('/admin/content', 'CrudController');
Router::resource('/admin/section-has-content', 'CrudController');
Router::resource('/admin/page-has-content', 'CrudController');
Router::resource('/admin/media', 'MediaController');
// Basic routes
return [
// URL, controller, action, [view, title, description]
['/', 'IndexController'],
['/img/captcha.jpg', 'IndexController', 'captcha'],
['/robots.txt', 'IndexController', 'robots'],
['/sitemap.xml', 'IndexController', 'sitemap'],
['/blog', 'BlogController'],
['/login', 'LoginController', 'login', ['', 'Sign in', '']],
['/reset-password', 'LoginController', 'reset', ['', 'Reset password', '']],
['/logout', 'LoginController', 'logout'],
['/admin', 'AdminController'],
['/admin/cache', 'CacheController', 'cache'],
['/admin/cache/purge', 'CacheController', 'purge'],
['/admin/cache/toggle', 'CacheController', 'toggle'],
['/admin/toggle', 'AdminController', 'toggle'],
['/admin/syntax-highlighting', 'AdminController', 'syntax'],
['/test', 'TestController', '', ''],
// ["", "", "", ""],
];