const express = require('express');
const bodyParser = require('body-parser');
const app = express();
app.use(bodyParser.json());
app.post('/introduce-yourself', (req, res) => {
const name = req.body.name || 'Mazen Mohamed';
const occupation = req.body.occupation || 'Software Developer';
const interests = req.body.interests || ['JavaScript', 'Nodejs', 'Rest Framework'];
const introduction = `Hello, my name is ${name}. I am a ${occupation} and my interests include ${interests.join(', ')}.`;
res.json({ introduction });
});
-
🌱 I’m currently working on Amazing Tool 🙄
-
📫 How to reach me [email protected]
The most important step of all is the first step. Start something.
— Blake Mycoskie