app.js
411 Bytes
var express = require('express');
var app = express();
var urlenconde = require('urlencode');
var router = require('./router/index')(app);
var bodyParser = require('body-parser');
app.set('views', __dirname + '/views');
app.set('views engine', 'ejs');
app.engine('html', require('ejs').renderFile);
var server = app.listen(23023, function() {
console.log('Success');
});
app.use(express.static('public'))