regex generic for route

21 views
Skip to first unread message

Raphael Cuba

unread,
May 31, 2013, 12:47:08 PM5/31/13
to web...@googlegroups.com
How to make a regex generic route in webapp2?
I want to make a request for any url and response with only one RequestHandler.

It's possible?

Thank!

Aaron Sykes

unread,
Jun 1, 2013, 3:59:39 PM6/1/13
to web...@googlegroups.com
.* should work. It would look something like this:
                                                                   
app = webapp2.WSGIApplication([
...
(r'/.*', Generic),
...                                         
])

Raphael Cuba

unread,
Jun 1, 2013, 7:10:36 PM6/1/13
to web...@googlegroups.com
I'm try this and don't work :/
Reply all
Reply to author
Forward
0 new messages