Ripped out the pseudonym reserve system
Moving to JWT tokens in future
This commit is contained in:
+3
-4
@@ -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}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user