Beispiel #1
0
$app->delete('/manage_users/:id', function ($id) {
    fAuthorization::requireLoggedIn();
    $controller = new NameController();
    $controller->delete($id);
});
$app->post('/article/:id', function ($id) {
    fAuthorization::requireLoggedIn();
    $controller = new ArticleController();
    $controller->update($id);
});
$app->delete('/article/:id', function ($id) {
    fAuthorization::requireLoggedIn();
    $controller = new ArticleController();
    $controller->delete($id);
});
$app->post('/profiles', function () {
    fAuthorization::requireLoggedIn();
    $controller = new ProfileController();
    $controller->create();
});
$app->post('/profile/:id', function ($id) {
    fAuthorization::requireLoggedIn();
    $controller = new ProfileController();
    $controller->update($id);
});
$app->post('/manage/sendmail', function () {
    fAuthorization::requireLoggedIn();
    $controller = new AdminController();
    $controller->sendmail();
});
$app->run();