Salesforce Certified B2C Commerce Developer (Comm-Dev-101) Exam - Topic 4 Question 87 Discussion
A developer needs to perform the same additional checks before completing multiple routes in a custom controller, in order to decide whether to render a template or redirect the user to a different page.According to SFRA best practices, what is the correct approach to improve code reusability in this scenario7
A) Define a new middleware function and use it in the existing routes.
B) Append a new function to all the existing routes with the server module.
C) Replace the existing routes by creating a controller in separate new cartridge.
D) Use the superModule property in the existing routes to extend their functionality.
Armando
9 months agoAnnelle
9 months agoJunita
9 months agoSantos
9 months agoAretha
10 months agoLatrice
10 months agoHillary
10 months agoHassie
10 months agoJanet
10 months agoQueen
11 months agoGail
11 months agoVeta
11 months agoLeslie
11 months agoMarguerita
1 year agoElvera
1 year agoCordelia
1 year agoSusy
1 year agoPete
1 year agoDarci
1 year agoIesha
1 year agoMerri
1 year agoEve
1 year agoMozelle
1 year agoSarina
1 year agoLeota
1 year agoReed
1 year agoDeonna
1 year agoNorah
1 year agoYuriko
1 year agoCarmela
1 year agoRonnie
1 year agoNelida
1 year agoElza
1 year agoDenny
1 year agoClorinda
1 year agoRonnie
1 year ago