git.cweiske.de
/
stouyapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6eb3ed7
)
Fix multiple product filter - we return all products when more than one is requested
author
Christian Weiske
<cweiske@cweiske.de>
Thu, 16 Jan 2020 20:23:20 +0000
(21:23 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Thu, 16 Jan 2020 20:23:20 +0000
(21:23 +0100)
www/.htaccess
patch
|
blob
|
history
diff --git
a/www/.htaccess
b/www/.htaccess
index a70563d7a9e32637da668d90fa7a62c87cdbb6e0..1ba4fcc0b81d6356137b988260dae4d63cc0755c 100644
(file)
--- a/
www/.htaccess
+++ b/
www/.htaccess
@@
-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]