Exemple #1
0
    $controller->infrastructures();
});
$app->get('/halloffames', function () {
    UserHelper::requireProfile();
    $controller = new ArticleController();
    $controller->halloffames();
});
$app->get('/posts', function () {
    UserHelper::requireProfile();
    $controller = new ArticleController();
    $controller->showPosts();
});
$app->get('/profiles/new', function () {
    fAuthorization::requireLoggedIn();
    $controller = new ProfileController();
    $controller->newProfile();
});
$app->get('/profile/:id', function ($id) {
    fAuthorization::requireLoggedIn();
    UserHelper::requireProfile();
    $controller = new ProfileController();
    $controller->show($id, 0);
});
$app->get('/profile/:id/tweet', function ($id) {
    fAuthorization::requireLoggedIn();
    UserHelper::requireProfile();
    $controller = new ProfileController();
    $controller->show($id, 0);
});
$app->get('/profile/:id/msgs', function ($id) {
    fAuthorization::requireLoggedIn();