X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/python-routefs.git/blobdiff_plain/837e818319e2394caf2dcab5e40b18dcad3c6f0b..427878a7a692997d2be7dcfe8051673ec8ec7ba6:/routefs/examples/homefs.py?ds=sidebyside diff --git a/routefs/examples/homefs.py b/routefs/examples/homefs.py index a832c39..16c7bda 100755 --- a/routefs/examples/homefs.py +++ b/routefs/examples/homefs.py @@ -24,8 +24,8 @@ class HomeFS(routefs.RouteFS): def make_map(self): m = Mapper() - m.connect('', controller='getList') - m.connect(':action', controller='getUser') + m.connect('/', controller='getList') + m.connect('/{action}', controller='getUser') return m def getUser(self, action, **kwargs):