Fix multiple product filter - we return all products when more than one is requested
[stouyapi.git] / www / .htaccess
index a70563d7a9e32637da668d90fa7a62c87cdbb6e0..1ba4fcc0b81d6356137b988260dae4d63cc0755c 100644 (file)
@@ -13,6 +13,7 @@ RewriteRule ^api/v1/apps/(.*)$ /api/v1/apps/$1.json? [END]
 
 #rewrite developer products "only" GET parameter
 RewriteCond %{QUERY_STRING} &only=([^&]+)
+RewriteCond %{DOCUMENT_ROOT}/api/v1/developers/$1/products/%1.json -f
 RewriteRule ^api/v1/developers/(.+)/products/ /api/v1/developers/$1/products/%1.json? [END]
 
 RewriteRule ^api/v1/discover/?$ /api/v1/discover-data/discover.json [END]