Exemple #1
0
    case 'auth.store':
        $controller = new AuthenticationController();
        $controller->store();
        break;
    case 'auth.attempt':
        $controller = new AuthenticationController();
        $controller->attempt();
        break;
    case 'login':
        $controller = new AuthenticationController();
        $controller->login();
        break;
    case 'account.edit':
        $controller = new AccountController();
        $controller->edit();
    case 'upload':
        $controller = new AccountController();
        $controller->upload();
        break;
    case 'logout':
        $controller = new AuthenticationController();
        $controller->logout();
        break;
    case 'comment.create':
        $controller = new CommentController();
        $controller->create();
        break;
    default:
        echo "404";
        break;
}