config('qoob/app/config.ini.php'); //______________________________________________________________________________ // add routes $qoob->route('GET /', 'app\about->index'); $qoob->route('GET /about', 'app\about->index'); $qoob->route('GET /resume', 'app\resume->index'); $qoob->route('GET /contact', 'app\contact->index'); $qoob->route('POST /contact/send', 'app\contact->send'); $qoob->route('GET /contact/thank_you', 'app\contact->thank_you'); $qoob->route('GET /projects', 'app\projects->index'); $qoob->route('GET /projects/:category', 'app\projects->category'); $qoob->route('GET /projects/:category/:title', 'app\projects->overview'); $qoob->route('GET /code/', 'app\code->index'); $qoob->route('GET /code/:repo', 'app\code->repo'); $qoob->route('GET /code/:repo/:branch', 'app\code->branch'); $qoob->route('GET /code/:repo/:branch/history', 'app\code->history'); $qoob->route('GET /code/:repo/:branch/:commit', 'app\code->commit'); $qoob->route('GET /code/:repo/:branch/:commit/tree/:obj', 'app\code->tree'); $qoob->route('GET /code/:repo/:branch/:commit/tree/:obj/tar', 'app\code->tar'); $qoob->route('GET /code/:repo/:branch/:commit/tree/:obj/zip', 'app\code->zip'); $qoob->route('GET /code/:repo/:branch/:commit/blob/:obj', 'app\code->blob'); $qoob->route('GET /code/:repo/:branch/:commit/blob/:obj/raw', 'app\code->raw'); $qoob->route('GET /code/:repo/:branch/:commit/blob/:obj/tar', 'app\code->tar'); $qoob->route('GET /code/:repo/:branch/:commit/blob/:obj/zip', 'app\code->zip'); //______________________________________________________________________________ // execute $qoob->run(); ?>