mirror of
https://github.com/fergalmoran/qrmaker.git
synced 2025-12-22 10:00:50 +00:00
25 lines
643 B
Python
25 lines
643 B
Python
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()
|