Esempio n. 1
0
function check_logged_in()
{
    BaseController::check_logged_in();
}
$routes->post('/logout', function () {
    UserController::logout();
});
$routes->get('/login', function () {
    UserController::login();
});
$routes->post('/login', function () {
    //ei jostaan syystä login tule tänne
    UserController::handle_login();
});
$routes->get('/info', function () {
    HelloWorldController::info();
});
$routes->get('/waybill/:id/edit', function ($id) {
    WaybillController::edit($id);
});
$routes->post('/waybill/:id/edit', function ($id) {
    WaybillController::update($id);
});
$routes->get('/waybill/:id/destroy', function ($id) {
    WaybillController::destroy($id);
});
$routes->get('/waybill/search', function () {
    WaybillController::search();
});
$routes->post('/waybill/search', function ($id) {
    //Ei toimi :(((