get('/example', function () { ScopeMiddleware::requireScope(Scope::SUPERUSER_READ, '/example'); global $response; $response->success(['message' => 'Hello World!']); }); $this->get('/tmp-send-email', function () { global $response; $response->error(['message' => 'This route is deprecated.']); }); $this->get('/tmp-washes-in-time', function () { global $response; $response->error(['message' => 'This route is deprecated.']); }); $this->get('/tmp-customer-list-overcharged', function () { global $response; $response->error(['message' => 'This route is deprecated.']); }); $this->get('/debug', function () { global $response; //$response->success(['message' => 'Debugging route!']); $machine_1 = new machine_1(); //$machine_1->debugAssets(); $machine_1->current_step = 0; $machine_1->only_generate_current_step = false; $machine_1->highlighted_buttons = [ //0, 2, 4, 7 ]; $machine_1->setup(); $machine_1->servePicture(); exit; }); } }