Express POST Route

Descripción

Define a POST route in Express


File Template: ❌


Prefix

express:post


Scopes

javascript


Snippet de código

app.post('/${1:path}', (req, res) => {
	// Your POST logic here
	const data = req.body;
	res.status(201).json(data);
});