Ripped out the pseudonym reserve system

Moving to JWT tokens in future
This commit is contained in:
2021-03-08 11:44:12 +11:00
parent 2667af503e
commit 3e31429a4f
10 changed files with 17 additions and 110 deletions
+3 -4
View File
@@ -5,12 +5,10 @@ require('dotenv').config();
const express = require('express');
const app = express();
const server = require('http').Server(app);
const formidable = require('express-formidable');
const bodyParser = require('body-parser');
const cors = require('cors');
//config
app.use(formidable());
app.use(bodyParser.json());
app.use(cors());
@@ -26,6 +24,7 @@ app.get('*', (req, res) => {
});
//startup
server.listen(process.env.WEB_PORT || 3200, (err) => {
console.log(`listening to localhost:${process.env.WEB_PORT || 3200}`);
server.listen(process.env.WEB_PORT || 3300, async (err) => {
await database.sync();
console.log(`listening to localhost:${process.env.WEB_PORT || 3300}`);
});