This question feels familiar; I think we practiced something similar where we had to decide on middleware for extending routes. I hope I remember the right approach!
I think we might need to specify any middleware functions needed for the new functionality, but I can't recall if we should limit it to just the base route's middleware.
I remember we talked about middleware functions in class, but I'm not sure if we should only use those from the base route or if we can add new ones too.
Removing the next() call seems risky to me. I don't want to break the existing functionality, so I'll stick with using the middleware functions from the base route.
I'm a bit confused about the "prepared()" part of the question. Does that mean I need to use some kind of prepared statement or query? I'll have to research that a bit more.
Okay, I think the key here is to only use the middleware functions called by the base route. That way, I can extend the functionality without disrupting the existing flow.
Hmm, this looks like a tricky one. I'll need to carefully review the base route and consider what additional middleware functions might be needed for the new functionality.
Hmm, I'm a bit unsure about this one. The options seem to cover different aspects of the knowledgebase, but I'm not sure which one is the primary purpose. I'll have to think this through step-by-step.
This question is a great way to test our understanding of SFRA routing. I'm glad they're not asking us to write code from scratch - that would be a real brain-buster!
Haha, I love how the question is phrased. It's almost like they're trying to trip us up with those silly answer choices. But B is clearly the way to go here.
The key here is to consider the middleware functions used by the base route. Extending the route using prepared() will require adding any additional middleware needed for the new functionality.
Ashleigh
2 months agoTish
3 months agoMiesha
3 months agoDenna
3 months agoRodrigo
3 months agoAdelle
3 months agoRaina
4 months agoBok
4 months agoDorinda
4 months agoTrinidad
4 months agoAnnamae
4 months agoJacklyn
5 months agoEllsworth
5 months agoAnnelle
5 months agoKing
1 year agoLavelle
1 year agoDorinda
1 year agoAlana
1 year agoLayla
1 year agoSharita
1 year agoVirgie
1 year agoDorothy
1 year agoKarma
1 year agoYun
1 year agoFelix
1 year agoKathrine
1 year agoCecily
1 year agoHollis
1 year agoHolley
1 year agoMicheal
1 year agoBambi
1 year agoKeneth
1 year agoThomasena
1 year agoJulieta
1 year agoDeangelo
1 year ago