Exercises: Server Side Routing - Rest APIs In Depth

Опубликовано: 27 Сентябрь 2023
на канале: Tech with Nader
814
30

Let's go through some exercises to get practice with Server Side Routing in Deno together, using web standard methods.

We start with a warmup using simple if/else statements and the URL constructor to route incoming request pathnames.

Then we move to using the URLPattern API to route incoming requests.

In the second main exercise, we add some complexity to create even more dynamic routing patterns using the URLPattern API.

We wrap up the exercises with an HTML routing exercise where we route an incoming connection to an HTML file as well as an image file dynamically.

Chapters:
00:00 Introduction
00:41 Warmup Exercise - Conditional Routes
13:28 Exercise 1 - URLPattern Routing
22:05 Exercise 2 - Dynamic Routing
38:50 Exercise 3 - HTML Content Routing
1:04:04 Error Handling
1:09:04 Next Steps

📦 Github Repository with the notes and exercise code+solutions: https://github.com/Nooder/rest-api-in...

💬 Come join us on Discord to chat with a like-minded community about tech and learning:   / discord  

🏅Support the channel and content through Super Thanks, Channel Memberships, or on Patreon:   / techwithnader  


Смотрите видео Exercises: Server Side Routing - Rest APIs In Depth онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Tech with Nader 27 Сентябрь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 81 раз и оно понравилось 3 людям.