On May 26, 2011, at 10:16 AM, Francisco Costa wrote:
> 
> Hello,
> we are building a short-url app.
> 
> We are using MongoDB to save in a table the long-url (ex.: http://google.com)
> and respective short-url (ex.: eWTy)
> 
> We pretend to use it just like bit.ly
> 
> To make the redirect working we have to point the browser to a
> function like http://domain.com/r/eWTy that would redirect to 
> http://google.com
> 
> Is there any way we can omit the controller? like http://domain.com/eWTy
> 
> I've tried to make 'r' the default_function on routes.py but it didn't
> work

You need to specify functions=[list of functions in default controller].

The rewrite logic needs this so that it can verify that the first arg is not a 
valid function name.

Reply via email to