private static function route($uri) {
		$result = $uri;
		$routes = \Application::get('routes');
		if (empty($routes)) $routes = [];
		$extra_routes = \Object\ACL\Resources::getStatic('routes');
		if (!empty($extra_routes)) {
			$routes = array_merge($routes, $extra_routes);
		}
		if (!empty($routes)) {
			foreach ($routes as $v) {
				$regex = '#^' . $v['regex'] . '#i';
				if (preg_match($regex, $result, $values)) {
					$result = str_replace($v['regex'], $v['new'], $result);
				}
			}
		}
		return $result;
	}