Introduction to Express - Express Routing

Difficulty: Beginner
Duration: 11 minutes and 20 seconds
Students: 71
Rating: 4/5

In this lesson you will learn how to create API routes for an Express server. 

Learning Objectives

  • Implement a GET route handler
  • Define what is the root entry point of an API
  • Understand the request and response objects
  • Define and implement the res.json() method
  • Implement a POST route handler
  • Implement the express.json() middleware to parse JSON requests
  • Define and implement the res.body method
  • Learn how to use Insomnia to test an API endpoint
  • Implement a wildcard endpoint to handle requests that go to a non-existent endpoint 

Intended Audience

  • This lesson is intended for anyone who wants to learn about Express.

Prerequisites

Covered Topics