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