aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/client/debugger.html14
-rwxr-xr-xsrc/loggergae/api.py8
2 files changed, 19 insertions, 3 deletions
diff --git a/src/client/debugger.html b/src/client/debugger.html
new file mode 100644
index 0000000..a0625b3
--- /dev/null
+++ b/src/client/debugger.html
@@ -0,0 +1,14 @@
+<!--
+To change this template, choose Tools | Templates
+and open the template in the editor.
+-->
+<!DOCTYPE html>
+<html>
+ <head>
+ <title></title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ </head>
+ <body>
+ <div>TODO write content</div>
+ </body>
+</html>
diff --git a/src/loggergae/api.py b/src/loggergae/api.py
index 622a5dc..9505fcf 100755
--- a/src/loggergae/api.py
+++ b/src/loggergae/api.py
@@ -7,7 +7,6 @@ from google.appengine.ext import db
class Feed(db.Model):
secret = db.StringProperty()
- author = db.UserProperty()
content = db.StringProperty(multiline=True)
date = db.DateTimeProperty(auto_now_add=True)
@@ -17,10 +16,13 @@ class MainPage(webapp2.RequestHandler):
class Stream(webapp2.RequestHandler):
def get(self):
- self.response.out.write('stream api')
+ self.response.out.write('stream get')
+ def post(self):
+ self.response.out.write('stream post')
app = webapp2.WSGIApplication([
('/api', MainPage),
- ('/api/stream', Stream),
+ ('/api/get', Stream),
+ ('/api/set', Stream),
('/', MainPage)
], debug=True) \ No newline at end of file