public static function handleRequest($action) { if (static::$_currentRepo = Repo::getById($action)) { return static::handleRepositoryRequest(); } else { return \Emergence\Developer\Tools\RequestHandler::throwNotFoundError(); } }
public static function handleHomeRequest() { $GLOBALS['Session']->requireAccountLevel('Developer'); return static::respond('home', ['Repos' => Repo::getAll()]); }