2013-02-17 21:48:21 -05:00
|
|
|
<?php
|
|
|
|
|
2016-08-18 21:02:49 -04:00
|
|
|
require __DIR__.'/app/common.php';
|
2014-02-08 14:13:14 -05:00
|
|
|
|
2016-08-24 21:17:58 -04:00
|
|
|
use Miniflux\Router;
|
|
|
|
use Miniflux\Response;
|
|
|
|
|
2016-12-26 09:44:53 -05:00
|
|
|
register_shutdown_function(function () {
|
|
|
|
Miniflux\Helper\write_debug_file();
|
|
|
|
});
|
|
|
|
|
2016-08-18 21:02:49 -04:00
|
|
|
Router\bootstrap(
|
|
|
|
__DIR__.'/app/controllers',
|
|
|
|
'common',
|
2016-12-26 09:44:53 -05:00
|
|
|
'about',
|
|
|
|
'api',
|
|
|
|
'auth',
|
2016-08-18 21:02:49 -04:00
|
|
|
'bookmark',
|
2016-12-26 09:44:53 -05:00
|
|
|
'config',
|
2016-08-18 21:02:49 -04:00
|
|
|
'feed',
|
2016-12-26 09:44:53 -05:00
|
|
|
'help',
|
|
|
|
'history',
|
|
|
|
'item',
|
|
|
|
'opml',
|
|
|
|
'profile',
|
|
|
|
'search',
|
|
|
|
'services',
|
|
|
|
'users'
|
2016-08-18 21:02:49 -04:00
|
|
|
);
|
2014-02-08 14:13:14 -05:00
|
|
|
|
|
|
|
Router\notfound(function() {
|
|
|
|
Response\redirect('?action=unread');
|
|
|
|
});
|