Index: sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wcorg-json-api.php
===================================================================
--- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wcorg-json-api.php	(revision 3062)
+++ sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wcorg-json-api.php	(working copy)
@@ -346,18 +346,16 @@
  * @param WP $request
  */
 function wcorg_json_v2_compat( $request ) {
-	$v2_routes = array(
-		'/wp-json/wordcamp-qbo',
-		'/wp-json/wordcamp-letsencrypt',
-	);
 
-	if ( strpos( $_SERVER['REQUEST_URI'], '/wp-json' ) !== 0 ) {
+	$rest_prefix = rest_get_url_prefix();
+
+	if ( strpos( $_SERVER[ 'REQUEST_URI' ], "/$rest_prefix" ) !== 0 ) {
 		return;
 	}
 
 	$is_route_v2 = false;
-	foreach ( $v2_routes as $route ) {
-		if ( strpos( $_SERVER['REQUEST_URI'], $route ) === 0 ) {
+	foreach ( rest_get_server()->get_namespaces() as $namespace ) {
+		if ( strpos( $_SERVER[ 'REQUEST_URI' ], "/$rest_prefix/$namespace" ) === 0 ) {
 			$is_route_v2 = true;
 			break;
 		}
