Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

basic routes

const express = require('express')
const app = express()

// respond with "hello world" when a GET request is made to the homepage
app.get('/', (req, res) => {
  res.send('hello world')
})
Source by expressjs.com #
 
PREVIOUS NEXT
Tagged: #basic #routes
ADD COMMENT
Topic
Name
9+3 =