You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
421 B
16 lines
421 B
const express = require('express')
|
|
const path = require("path")
|
|
const app = express()
|
|
const port = 5000
|
|
|
|
app.use('/blocks', express.static(path.join(path.resolve(__dirname, '..'), 'blocks')))
|
|
|
|
console.log('path:', path.join(path.resolve(__dirname, '..'), 'blocks'))
|
|
|
|
app.get('/', (req, res) => {
|
|
res.send('Hello World!')
|
|
})
|
|
|
|
app.listen(port, () => {
|
|
console.log(`Example app listening at http://localhost:${port}`)
|
|
}) |