RewriteRule ^api/v1/discover/?$ /api/v1/discover-data/discover.json [END]
RewriteRule ^api/v1/discover/(.+)$ /api/v1/discover-data/$1.json [END]
+#if directoryslash is on, gamers gets redirected to gamers/ (dir index)
+<Files "/api/v1/gamers">
+ DirectorySlash off
+</Files>
+#TODO: Use that only for the api/v1/gamers path, not for all
+ErrorDocument 400 /api/v1/gamers/register-error.json
+RewriteRule ^api/v1/gamers$ /api/v1/gamers/register-error.json [R=400,END]
+
#purchased games/products
# active buy requests
RewriteCond %{REQUEST_METHOD} POST
--- /dev/null
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>stouyapi marketplace agreements</title>
+ </head>
+ <body>
+ <h1>stouyapi - OUYA API server</h1>
+ <p>
+ We store no data, so you do not need to agree to anything :)
+ </p>
+ <p>
+ Registration of new accounts does not work here!
+ Simply go back and choose "existing account",
+ type any username, leave the password empty and sign in.
+ </p>
+ </body>
+</html>