server.js 359 Bytes
Newer Older
Lee SeoYeon's avatar
commit    
Lee SeoYeon committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import express from 'express'

const app = express()

// app.use(express.static('../client/build'))

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'))
})