Ejemplo n.º 1
0
$routes->get('/waybill/new', function () {
    WaybillController::create();
});
//Vastaanottajat
$routes->post('/receiver', function () {
    ReceiverController::store();
});
$routes->get('/receiver/new', function () {
    ReceiverController::create();
});
$routes->get('/receiver', 'check_logged_in', function () {
    ReceiverController::index();
});
// Lähettäjät
$routes->post('/customer', function () {
    CustomerController::store();
});
$routes->get('/customer/new', function () {
    CustomerController::create();
});
$routes->get('/customer', 'check_logged_in', function () {
    CustomerController::index();
});
// Listaa kaikki rahtikirjat
$routes->get('/waybill', 'check_logged_in', function () {
    WaybillController::index();
});
$routes->get('/', 'check_logged_in', function () {
    HelloWorldController::index();
});
$routes->get('/hiekkalaatikko', function () {