Manual Routing Basics

Manual routing means checking the request URL and method manually, then sending the appropriate response.

  • req.url gives the request path
  • Use if/else if statements to create simple routes
  • Good for learning, but gets messy in large apps (use Express later)
← PrevNext →