Regex routing in Python using Tornado framework
What about this: r'/admin/?' or r'/admin/{0,1}? Pay attention that I'm only talking about regex, don't know if this would work in Django.
i currently have this in my routing:
(r"/admin", AdminController.Index ),
(r"/admin/", AdminController.Index ),
how do i merge them with just one line and have admin and admin/ go to AdminController.Index?
i know this could be achieved via regex, but it doesnt seem to work