aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2012-09-26 16:27:37 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2012-09-26 16:27:37 +0200
commite453ba45e4ee66be9a33232e578805425a837ec7 (patch)
treedc227dfee4359d592789bf196470e91f47ac27af
parent4fd91dca774976bf0e76c96b71583d404d09b820 (diff)
downloadnanocloudlogger-e453ba45e4ee66be9a33232e578805425a837ec7.tar.gz
nanocloudlogger-e453ba45e4ee66be9a33232e578805425a837ec7.zip
New folder name.
-rwxr-xr-xsrc/loggergae/api.py26
-rwxr-xr-xsrc/loggergae/app.yaml13
2 files changed, 39 insertions, 0 deletions
diff --git a/src/loggergae/api.py b/src/loggergae/api.py
new file mode 100755
index 0000000..622a5dc
--- /dev/null
+++ b/src/loggergae/api.py
@@ -0,0 +1,26 @@
+
+import cgi
+import datetime
+import webapp2
+
+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)
+
+class MainPage(webapp2.RequestHandler):
+ def get(self):
+ self.response.out.write('main page')
+
+class Stream(webapp2.RequestHandler):
+ def get(self):
+ self.response.out.write('stream api')
+
+app = webapp2.WSGIApplication([
+ ('/api', MainPage),
+ ('/api/stream', Stream),
+ ('/', MainPage)
+], debug=True) \ No newline at end of file
diff --git a/src/loggergae/app.yaml b/src/loggergae/app.yaml
new file mode 100755
index 0000000..9c2344a
--- /dev/null
+++ b/src/loggergae/app.yaml
@@ -0,0 +1,13 @@
+application: loggergae
+version: v1
+runtime: python27
+api_version: 1
+threadsafe: yes
+
+handlers:
+- url: .*
+ script: api.app
+
+libraries:
+- name: webapp2
+ version: "2.5.1"