Skip to content

Conversation

@888i888
Copy link

@888i888 888i888 commented Aug 17, 2025

updated assignment

@hacdias hacdias self-assigned this Aug 23, 2025
@hacdias
Copy link

hacdias commented Aug 23, 2025

Hi @888i888. You should've used the same PR (#11), instead of opening a new one. I will close the other one.

Comment on lines +6 to +19
app.use(express.json());

app.get('/', (req, res) => {
res.send('hello from backend to frontend!');
});

app.post('/weather', (req, res) => {
const {cityName} = req.body;
res.send(`You submitted : ${cityName}`);
});

app.listen(PORT, () => {
console.log(`Server is running on http://localhost:${PORT}`);
}); No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what was asked for Week 1, not Week 2. Please see the instructions: https://github.com/HackYourAssignment/Node.js-Cohort53/blob/main/week2/MAKEME.md#3-project-hackyourtemperature-ii

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants