Express

No description

fork
loading
Files
  • index.js
  • bot
  • index.html
  • keep_alive.js
  • LICENSE
  • package-lock.json
  • package.json
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const express = require('express');
const bodyParser = require('body-parser');

const app = express();

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));

app.use(express.static('public'));

app.get('/', (req, res) => {
	res.sendFile('index.html', {root:'.'});
});


//const bot = require("./bot/main.js");

app.listen(3000, () => console.log("[Express] Online"));