Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const express = require('express')
- const app = express()
- const port = 3000
- app.get('/', (request, response)=>{
- console.log(request.query)
- response.send('Soma:' + (parseInt( request.query.numero1) + parseInt(request.query.numero2)))
- })
- app.listen(port, () => console.log('Server running on '+ port))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement