aboutsummaryrefslogtreecommitdiffstats
path: root/src/loggergae/api.py
blob: 622a5dcf89eb7f699a7096ec93bbc83354ae6479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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)