miniflux-legacy/index.php

35 lines
516 B
PHP
Raw Normal View History

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;
register_shutdown_function(function () {
Miniflux\Helper\write_debug_file();
});
2016-08-19 03:02:49 +02:00
Router\bootstrap(
__DIR__.'/app/controllers',
'common',
'about',
'api',
'auth',
2016-08-19 03:02:49 +02:00
'bookmark',
'config',
2016-08-19 03:02:49 +02:00
'feed',
'groups',
'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');
});