aboutsummaryrefslogtreecommitdiffstats
path: root/server.js
blob: 85d9ba42006431aa1278f84f957ca7f0bd4967a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
const express = require('express');
const session = require('express-session');
const app = express();

app.use(express.urlencoded({ extended: true }));
app.use(express.json());
app.use(session({
  secret: 'your-secret',
  resave: false,
  saveUninitialized: false
}));

app.listen(3000, () => console.log('running on :3000'));