server.js 314 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import express from 'express'

const app = express()

app.get('/', (req, res) => {
    res.send('Hello')
})

app.get('/home', (req, res) => {
    res.send('Home page')
})

app.put('/signin', (req, res) => {
    res.send('Sign in')
})

app.listen(3001, () => {
    console.log('Server is listening on port 3001')
})