Edge.js extends global


#1

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


#2

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