Showing
1 changed file
with
16 additions
and
0 deletions
app.js
0 → 100644
1 | +var express = require('express'); | ||
2 | +var app = express(); | ||
3 | +var xml2js = require('xml-js'); | ||
4 | +var urlencode = require('urlencode'); | ||
5 | +const request = require('request'); | ||
6 | +var router = require('./router/main')(app); | ||
7 | + | ||
8 | +app.set('views', __dirname + '/views'); | ||
9 | +app.set('view engine', 'ejs'); | ||
10 | +app.engine('html', require('ejs').renderFile); | ||
11 | + | ||
12 | +var server = app.listen(3000, function(){ | ||
13 | + console.log('good'); | ||
14 | +}); | ||
15 | + | ||
16 | +app.use(express.static('public')); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment