miniflux-legacy/index.php

20 lines
696 B
PHP
Raw Normal View History

2013-02-18 03:48:21 +01:00
<?php
2014-02-08 20:13:14 +01:00
require __DIR__.'/common.php';
require __DIR__.'/vendor/fguillot/picofarad/lib/PicoFarad/Template.php';
require __DIR__.'/vendor/fguillot/picofarad/lib/PicoFarad/Response.php';
require __DIR__.'/vendor/fguillot/picofarad/lib/PicoFarad/Request.php';
require __DIR__.'/vendor/fguillot/picofarad/lib/PicoFarad/Session.php';
require __DIR__.'/vendor/fguillot/picofarad/lib/PicoFarad/Router.php';
2014-03-17 02:56:43 +01:00
require __DIR__.'/lib/helpers.php';
2014-02-08 20:13:14 +01:00
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');
});