Different URIs to single resource CFC

32 views
Skip to first unread message

CFMitrah @MitrahSoft

unread,
Aug 28, 2017, 5:43:28 AM8/28/17
to Taffy Users


can we have just one resource cfc ( user.cfc ), and have 3 functions inside it?  login, resetPassword, forgotPassword  & URIs will be /login , /resetpassword & /forgotpassword


As far as, I know, there is no way to keep different URIs point to a single CFC. One URI to one CFC, All verbs will be handled for that URI will be there in that CFC.
For example,  /artists will be URI, we need a one CFC for this URI as artisit.cfc , then get, post, delete & put will be methods in that CFCs

If my above statement is correct, We could handle it only via some URL rewrite rules. Please let me know, is there any other better ways to handle it

Adam Tuttle

unread,
Aug 28, 2017, 6:00:38 AM8/28/17
to Taffy Users
Not with Taffy, no. It's a pretty opinionated framework and one of those opinions is that URIs should be split between CFCs.

--
You received this message because you are subscribed to the Google Groups "Taffy Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taffy-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages