Challenge: Create a View to Display the HTTP Request Method
Explore how to build a view in AdonisJs that dynamically shows the HTTP request method. This lesson guides you through creating a controller method, rendering the view with Edge templating, and setting up the route to display the output. Gain practical experience working with views and controllers in AdonisJs.
We'll cover the following...
We'll cover the following...
Problem statement
Create a view that displays the HTTP request method, and use a controller method to render the view.