SDN302_-_SP_2025_-_FE_3595.webp
Hanami2001

SDN302_-_SP_2025_-_FE_3595.webp

☑Kizspy.me
(Choose 2 answers)
☐ A
Consider the following code snippet using Express.js. Identify which routes handle GET and POST requests.
const express = require('express');
const app = express();
app.get('/users', (req, res) => {
res.send('GET request to the /users endpoint');
});
app.post('/users', (req, res) => {
Back
Next
});
FUO.sh
sh the exam.
res.send('POST request to the /users endpoint');
});
app.listen(3000, () => {
console.log('Server running on port 3000');
A. The /users endpoint handles GET requests.
B. The /users endpoint handles POST requests.
C. The /users endpoint handles PUT requests.
D. The /users endpoint handles DELETE requests.

Thông tin

Category
SDN302
Thêm bởi
Hanami2001
Ngày thêm
Lượt xem
3,812
Lượt bình luận
14
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom