Controllers

6 Series
4 Lessons
43m 37s

Controllers are a great way to cleanly direct the business logic needed to handle requests for a route within your application.

Series.

Lessons.

Video preview
Cleaning Up Routes with Controllers
Let's Learn AdonisJS 6 #2.10
Jan 31

Cleaning Up Routes with Controllers

In this lesson, we'll learn what controllers are and how they can be used to drastically simplify our route definitions by allowing us to move our route handlers off the route definition and into the controller.

Let's Learn AdonisJS 5 #3.1
Dec 02, 21

Route & Controller Resources

In this lesson, we'll learn what a resource is and how we can quickly and easily define a route resource and handle each resourceful route with a resource controller.

Let's Learn AdonisJS 5 #3.0
Nov 10, 21

Handling Routes with Controllers

In this lesson, we'll learn about Controllers and how we can keep our route definitions clean and easy to scan by extracting our route handlers into these Controllers.

Let's Learn Adonis 5: Controllers, Services, Resources, and Namespacing

In this lesson, we'll be hammering down several Adonis topics in one swoop. We'll be covering Controllers, which in turn allow us to utilize Services, Resources, and Namespacing.