miniflux-legacy/index.php
2014-02-08 14:13:14 -05:00

21 lines
625 B
PHP

<?php
require __DIR__.'/common.php';
require __DIR__.'/vendor/PicoTools/Template.php';
require __DIR__.'/vendor/PicoTools/Helper.php';
require __DIR__.'/vendor/PicoFarad/Response.php';
require __DIR__.'/vendor/PicoFarad/Request.php';
require __DIR__.'/vendor/PicoFarad/Session.php';
require __DIR__.'/vendor/PicoFarad/Router.php';
require __DIR__.'/helpers.php';
use PicoFarad\Router;
use PicoFarad\Response;
Router\bootstrap(__DIR__.'/controllers', 'common', 'console', 'user', 'config', 'item', 'history', 'bookmark', 'feed');
// Page not found
Router\notfound(function() {
Response\redirect('?action=unread');
});