Oauth-Example/index.js

17 lines
370 B
JavaScript
Raw Normal View History

2017-09-28 23:03:15 +00:00
const path = require("path");
const express = require('express')
const bodyParser = require('body-parser');
const app = express()
app.use(bodyParser.json());
app.use(express.static('static'));
//app.get('/', (req, res) => {
// res.sendFile(path.join(__dirname + '/index.html'));
//})
app.listen(3000, () => {
console.log('Example app listening on port 3000!')
})