uri(0); // redirect depending on installation status installRedirect($route); // route to the relevant module $app->route('/', 'HomeModule') ->route('/install', 'InstallModule') ->route('/gate', 'GateModule') ->handle($route) ->cleanup();