22 lines
		
	
	
		
			776 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			776 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
---
 | 
						|
title: Get Route Parameter Input from the Client
 | 
						|
---
 | 
						|
## Get Route Parameter Input from the Client
 | 
						|
 | 
						|
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds  -->
 | 
						|
 | 
						|
If someone tells you to build a GET or POST you would do app.get(...) or app.post(...) accordingly. The basic structure of the challenge is:
 | 
						|
 | 
						|
```javascript
 | 
						|
app.get("/:word/echo", function(req, res) {
 | 
						|
  // word = req.params.word;
 | 
						|
  // respond with the json object
 | 
						|
});
 | 
						|
```
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<a href='https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/apis-and-microservices/basic-node-and-express/get-route-parameter-input-from-the-client/index.md' target='_blank' rel='nofollow'>Help our community expand these hints and guides</a>.
 |