mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
7352202c90
git-svn-id: https://zxing.googlecode.com/svn/trunk@788 59b500cc-1b3d-0410-9834-0bbf25fbcc57
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()
|