Загрузка...

#10 | Route Parameters & Matchers - AdonisJS 7

Learn AdonisJS route parameters and matchers

👍 If You Enjoy This Video, Consider Hitting The Like Button!

🥁 Subscribe To Stay Notified For New Videos: https://www.youtube.com/adocasts?sub_confirmation=1

🎯 Subscribe to Adocasts Plus to gain access to all our lessons and more!
https://adocasts.com/pricing

Learn AdonisJS route parameters and matchers. Capture dynamic segments in URLs and validate and cast with route matchers.

🕑 Chapters
00:00: Introduction to Route Parameters
00:18: How Route Parameters Work
00:42: Example: Defining a Dynamic Route
01:02: Accessing Route Parameters in Handlers
01:32: Returning Plain Text vs. JSON Responses
02:20: Implementing JSON Responses with ctx.response.json()
03:05: Handling Data Types: String vs. Number IDs
04:24: Validating Route Parameters with 'where()'
05:51: Advanced Validation: Regex and Casting
06:47: Using Predefined Matchers (e.g., 'number')
07:31: Global Route Parameter Matchers
07:48: Creating and Linking to a 'Show' Page
09:00: Rendering Dynamic Views with Route Parameters
09:44: Conclusion: Dynamic Routing in Practice

--------------------------Socials---------------------------

🕸️ Website: https://adocasts.com
🦋 Blusky: https://bsky.app/profile/adocasts.com
🐦 Twitter: https://twitter.com/adocasts
👍 GitHub: https://github.com/adocasts

Видео #10 | Route Parameters & Matchers - AdonisJS 7 канала Adocasts
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять