First working version with downloads
[stouyapi.git] / www / .htaccess
1 RewriteEngine on
2
3 #rewrite details GET parameter
4 RewriteCond %{QUERY_STRING} ^app=([^&]+)
5 RewriteRule ^api/v1/details /api/v1/details-data/%1.json?
6
7 RewriteRule ^api/v1/apps/(.*)/download$ /api/v1/apps/$1-download.json? [END]
8 RewriteRule ^api/v1/apps/(.*)$ /api/v1/apps/$1.json? [END]
9
10 RewriteRule ^api/v1/discover/?$ /api/v1/discover.json [END]
11 RewriteRule ^api/v1/discover/(.+)$ /api/v1/discover-data/$1.json [END]
12
13 #this one wants a 204 status code
14 RewriteRule ^api/v1/status$ - [R=204,NC,L]