diff --git a/backend/src/server.ts b/backend/src/server.ts index a76cec1..f017b2a 100644 --- a/backend/src/server.ts +++ b/backend/src/server.ts @@ -7,6 +7,15 @@ app.get('/health', (req, res) => { res.status(200).send('Server is healthy'); }); +// Adding a new endpoint /customer-info that handles GET requests and returns customer information in JSON format +app.get('/customer-info', (req, res) => { + res.json({ + name: "John", + lastname: "Doe", + id: 1 + }); +}); + app.listen(PORT, () => { console.log(`Server is running on port ${PORT}`); });