mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
18 lines
406 B
Python
18 lines
406 B
Python
|
from google.appengine.ext import webapp
|
||
|
from google.appengine.ext.webapp.util import run_wsgi_app
|
||
|
|
||
|
class BlogHandler(webapp.RequestHandler):
|
||
|
def get(self, tail = ''):
|
||
|
self.redirect('/generator/'+tail, permanent = True)
|
||
|
|
||
|
application = webapp.WSGIApplication(
|
||
|
[
|
||
|
(r'^/generator$', BlogHandler)
|
||
|
])
|
||
|
|
||
|
def main():
|
||
|
run_wsgi_app(application)
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
main()
|