Skip to content
Advertisement

Return view in controller AdonisJS

How can I return a view and display it through the controller in AdonisJs

JavaScript

report this error:

JavaScript

Advertisement

Answer

You can use response.send(view.render('<your_view>'))

Something like:

JavaScript

HTTP Context documentation

Official forum answer

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement