Router

Router

6 Series
45 Lessons
13h 4m

The AdonisJS Router provides routing capabilities for AdonisJS applications. It allows grouping, param validation, sub-domains, middleware assignment, naming, and so much more. It integrates deeply with the HttpContext and Edge.

Series.

From The Feed

Snippets.

Lessons.

Video preview
Adocasts Plus Exclusive
Exclusive
Course Modules Nested Resource

Course Module Nested Resource

In this lesson, we'll work on nested resourceful endpoints for our course modules. We'll add endpoints to create, update, patch, and deleting modules from a specific course.

Video preview
Adocasts Plus Exclusive
Exclusive
Paginating Courses

Paginating our Course List

In this lesson, we'll transform our courses list endpoint into a pagination endpoint. We'll check and validate our query string for a page and per page parameter that we'll then use to fetch pages of our courses.

Video preview
Adocasts Plus Exclusive
Exclusive
Status CRUD

Status API CRUD

In this lesson, we'll duplicate everything we did one more time for our organization's statuses.

Video preview
Adocasts Plus Exclusive
Exclusive
Access Level CRUD

Access Level API CRUD

In this lesson, we'll walk through adding API endpoints for the full CRUD (create, read, update, and delete) flow for our organization's access levels.

Video preview
Adocasts Plus Exclusive
Exclusive
Getting A Difficulty

Getting A Specific Difficulty

In this lesson, we'll add a GET API route enabling us to get the details of a specific difficulty by providing the difficulties id via route parameter.

Video preview
Adocasts Plus Exclusive
Exclusive
Listing Difficulties

Listing Organization Difficulties

In this lesson, we'll begin work on our first CRUD-based API resource by adding the ability to query a list of all our organization's difficulties.

Video preview
Adocasts Plus Exclusive
Exclusive
Simple API Versioning

Simple API Versioning

In this lesson, we'll implement a simple versioning mechanism for our API. Versioning allows us to safely make breaking changes without breaking our user's implementations of our API.

Video preview
Adocasts Plus Exclusive
Exclusive
Our first API endpoint

Our First API Endpoint to Get Our Organization's Details

In this lesson, we'll add the first endpoint to our API. With this endpoint we'll return back the Organization's details for the provided Access Token with the request.

Video preview
Adocasts Plus Exclusive
Exclusive
Goal of our API

The Goal of our REST API

In this lesson, we'll briefly give an overview of REST and how we'll be taking a practical approach to it when building our API.

Video preview
Adocasts Plus Exclusive
Exclusive
Accepting an Organization Invite

Accepting an Organization Invitation

We'll add our route to handle accepting an organization invite. Within this route, we'll verify our signed url, ensure the invitation is valid, accept the invite, and gracefully handle the use-case where users may need to first login or register.

Video preview
3 Easy Ways to Split AdonisJS 6 Routes
AdonisJS Quick Tip
#21.0
・
Dec 30, 24

3 Easy Ways to Split Route Definitions into Multiple Files in AdonisJS 6

Does your application have a ton of routes? In this lesson, we'll cover 3 easy ways you can split your application's route definitions into multiple files.

Video preview
Adocasts Plus Exclusive
Exclusive
Splitting Our Routes Between Auth & Web
Building with AdonisJS & Inertia
#5.1
・
Oct 04, 24

Splitting Our Routes Between Auth & Web

In this lesson, we'll split our routes into two files: auth and web. Our auth routes file will contain all our authentication-based route definitions and our web routes will contain the remaining.

Video preview
The Link Component
Building with AdonisJS & Inertia
#2.3
・
Aug 27, 24

The Link Component and Programmatic Linking

In this lesson, we'll explore Inertia's Link component and its props. We'll then examine how to link between pages programmatically using Inertia's router.

Video preview
Download Storage Images
Let's Learn AdonisJS 6
#11.7
・
Jun 20, 24

Using A Wildcard Route Param to Download Storage Images

In this lesson, we'll learn how we can utilize a wildcard route parameter to dynamically download images that've been uploaded and stored within our application storage.

Video preview
Displaying A User's Profile
Let's Learn AdonisJS 6
#10.4
・
Jun 01, 24

Displaying A User's Profile

In this lesson, we'll learn how you can mimic popular sites and use an @ handle to display your user's profiles

Video preview
Paginator Query Strings
Let's Learn AdonisJS 6
#9.6
・
May 23, 24

Persist Filters Easily with Lucid's Query String Method

Learn how to simplify pagination by persisting active filters with the query string method. Follow this step-by-step guide to clean up your code, apply the .queryString method from Lucid, and ensure seamless pagination for your web applications.

Video preview
Protecting Routes with Auth, Guest, and Admin Middleware
Let's Learn AdonisJS 6
#7.6
・
Apr 27, 24

Protecting Routes with Auth, Guest, and Admin Middleware

In this lesson, we'll learn about the auth and guest middleware included when we created our AdonisJS 6 project. Then, we'll create our own named middleware that will allow us to restrict page access to only users with the admin role.

Video preview
The Flow of Middleware
Let's Learn AdonisJS 6
#7.0
・
Apr 20, 24

The Flow of Middleware

In this lesson, we'll learn about the middleware that comes preinstalled within AdonisJS and the flow of this middleware during an HTTP Request at both a global and route-specific scale.

Video preview
HTTP Method Spoofing HTML Forms
Let's Learn AdonisJS 6
#3.9
・
Feb 17, 24

HTTP Method Spoofing HTML Forms

In this lesson, we'll learn how we can enable HTTP Method Spoofing to allow AdonisJS to spoof intended HTTP Verbs for basic HTML form POST requests.

Video preview
Deleting Items and Flushing our Redis Cache
Let's Learn AdonisJS 6
#2.15
・
Feb 04, 24

Deleting Items and Flushing our Redis Cache

Not everyone is perfect, and one day you'll accidentally cache bad data and need a way to quickly clear it out. In this lesson, we'll learn how we can create two routes to clear a single Redis key or flush the entire database.

Showing 1 to 20 of 44 results