[Catalyst] chained requests

Okusanya, Anthony anthony.okusanya at usbank.com
Tue Nov 7 19:55:15 GMT 2017


Theo
                You can create a single Products controller with two methods to handle those paths

#Path:- /test/productA/create
sub create_a :Global :Path('/test/productA/create'){
                my $self = shift;
                my $c = shift;
}

#Path:- /test/productB/create
sub create_b :Global :Path('/test/productB/create'){
                my $self = shift;
                my $c = shift;
}

Thanks

Tony B. Okusanya

From: catalyst-bounces at lists.scsys.co.uk [mailto:catalyst-bounces at lists.scsys.co.uk] On Behalf Of Theo Bot
Sent: Friday, November 03, 2017 9:52 AM
To: The elegant MVC web framework <catalyst at lists.scsys.co.uk>
Subject: [EXTERNAL] [Catalyst] chained requests

Hi
How do I create a single controller, that would be able to handle the following requests
/test/productA/create
and
/test/productB/create


--
Kind regards,

Theo Bot


U.S. BANCORP made the following annotations
---------------------------------------------------------------------
Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation.

---------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/catalyst/attachments/20171107/89eead83/attachment.htm>


More information about the Catalyst mailing list