Edge.js extends global


Good night, how are you?

where declare the extensions of edge.global currently I do it in the driver’s contrustor but I do not want to paste the same code in all the controllers then where I should write them in adoni


There’s a complete document explaining how to extend the core parts of framework (view globals are one of them). Please read it https://adonisjs.com/docs/4.1/extending-adonisjs