Special URL for storing the gamer key
[louyapi.git] / src / main / java / de / cweiske / ouya / louyapi / HttpServer.java
index 5375784c9c96baab85b0cf480ca2ed01517bd65d..024a1b841ca074e91f4e245bb2144c13879d383b 100644 (file)
@@ -92,6 +92,10 @@ public class HttpServer extends NanoHTTPD {
                 return newFixedLengthResponse(Response.Status.OK, "application/json", content);
             }
 
+        } else if (path.equals("/api/v1/gamers/key")) {
+            //usage: store gamer ouya public key via PUT
+            return newFixedLengthResponse(Response.Status.CREATED, null, "");
+
         } else if (path.equals("/api/v1/search") && session.getParameters().containsKey("q")) {
             //usage: search for games
             String query = session.getParameters().get("q").get(0);