mirror of
https://github.com/fergalmoran/qrmaker.git
synced 2026-01-06 01:07:40 +00:00
Files added
This commit is contained in:
24
gae_index.py
Normal file
24
gae_index.py
Normal file
@@ -0,0 +1,24 @@
|
||||
from google.appengine.ext import webapp
|
||||
from google.appengine.ext.webapp.util import run_wsgi_app
|
||||
|
||||
from qrmaker import QRMaker
|
||||
from qrmaker import QRPageHandler
|
||||
|
||||
class MainPage(webapp.RequestHandler):
|
||||
def get(self):
|
||||
self.response.headers['Content-Type'] = 'text/plain'
|
||||
self.response.out.write('Hello, webapp World!')
|
||||
|
||||
application = webapp.WSGIApplication(
|
||||
[
|
||||
('/', MainPage),
|
||||
('/qrmaker', QRPageHandler.QRPageHandler)
|
||||
],
|
||||
debug=True)
|
||||
|
||||
def main():
|
||||
run_wsgi_app(application)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user