谷歌应用引擎多处理程序

时间:2013-09-28 07:25:44

标签: google-app-engine httphandler

有没有办法制作一个谷歌应用引擎处理程序来处理所有尚未指定的网址?

也许喜欢:

app = webapp2.WSGIApplication([
    ('/', MainHandler),
    ('/hello',HelloHandler),
    ('/bye',ByeHandler),
    ('for-everything-else',OtherHandler)
], debug=True) 

1 个答案:

答案 0 :(得分:2)

好吧,我自己找到了答案:

app = webapp2.WSGIApplication([
    ('/', MainHandler),
    ('/hello',HelloHandler),
    ('/bye',ByeHandler),    
    ('/.*',OtherHandler)
], debug=True)