16 lines
281 B
JavaScript
16 lines
281 B
JavaScript
const express = require('express')
|
|
const app = express()
|
|
const port = 3000
|
|
|
|
app.get('/', (req, res) => {
|
|
res.send('Hello World!')
|
|
})
|
|
|
|
app.get('/ping', (req, res) => {
|
|
res.send('OK')
|
|
})
|
|
|
|
app.listen(port, () => {
|
|
console.log(`Example funko listening on port ${port}`)
|
|
})
|