Shawn Sorichetti wrote:
> I'm setting up a new application and finally using version 2.x of
> CGI::Application::Dispatch. My dispatch table so far looks like this:
> 
> table => [
>     ':instance/app' => { app => 'Welcome', rm => 'welcome' },
>     ':instance/app/module/:rm/:object' => { app => 'Module' },
>     ':instance/app/module/add/:type/:object' => { app => 'Module', rm =>
> 'add' },
>     ':instance/app/module' => { app => 'Module::List', rm => 'list' },
>     ':instance/app/module/list' => { app => 'Module::List', rm => 'list'},
> ],
> 
> With the last entry, I'd like Dispatch to ignore any path after the
> 'list' and let Module::List handle it. An example URL would be:
> 
> http://127.0.0.1/testing/app/module/list/server
> 
> Dispatch won't find a match in the table above because of the addition
> of server to the path. Is it possible to tell Dispatch to if it's
> matched this far, it's match and ignore the rest of the URL?

Try ':instance/app/module/list/*'. I'm not sure this will work, and if it does,
then it's probably just a side-effect of implementation. But if it does work and
you find it useful, we can document it as a feature and add some tests for it.
Either way, patches (or commits) are welcome.

-- 
Michael Peters
Developer
Plus Three, LP


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to