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
6 months agoAnnelle
6 months agoJunita
6 months agoSantos
6 months agoAretha
6 months agoLatrice
7 months agoHillary
7 months agoHassie
7 months agoJanet
7 months agoQueen
8 months agoGail
8 months agoVeta
8 months agoLeslie
8 months agoMarguerita
1 year agoElvera
11 months agoCordelia
11 months agoSusy
12 months agoPete
1 year agoDarci
1 year agoIesha
1 year agoMerri
1 year agoEve
1 year agoMozelle
12 months agoSarina
1 year agoLeota
1 year agoReed
1 year agoDeonna
12 months agoNorah
12 months 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