Exemplo n.º 1
0
<?php

$routes->get('/', function () {
    HelloWorldController::index();
});
$routes->get('/hiekkalaatikko', function () {
    HelloWorldController::sandbox();
});
$routes->get('/index', function () {
    HelloWorldController::index();
});
$routes->get('/request', function () {
    RequestController::request();
});
$routes->get('/userrequests', function () {
    RequestController::userrequests();
});
$routes->get('/data', function () {
    HelloWorldController::data();
});
$routes->get('/about', function () {
    HelloWorldController::about();
});
$routes->get('/links', function () {
    HelloWorldController::links();
});
$routes->get('/login', function () {
    UserController::login();
});
$routes->post('/login', function () {
    UserController::handle_login();