Salesforce Certified B2C Commerce Cloud 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
7 months agoAnnelle
7 months agoJunita
8 months agoSantos
8 months agoAretha
8 months agoLatrice
8 months agoHillary
9 months agoHassie
9 months agoJanet
9 months agoQueen
9 months agoGail
9 months agoVeta
9 months agoLeslie
10 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