am dumb
This commit is contained in:
parent
30a1644d10
commit
314c1847ed
7 changed files with 52 additions and 34 deletions
|
@ -1,12 +1,5 @@
|
|||
const express = require('express');
|
||||
const {
|
||||
hostname,
|
||||
port,
|
||||
authorization,
|
||||
source,
|
||||
invite,
|
||||
type
|
||||
} = require('../config');
|
||||
const { hostname, port, authorization, source, invite, type } = require('../config');
|
||||
const db = require('quick.db');
|
||||
const Backend = new db.table('backend');
|
||||
const chalk = require('chalk');
|
||||
|
@ -33,9 +26,11 @@ app.set('view options', {
|
|||
});
|
||||
|
||||
app.use(express.json());
|
||||
app.use(express.urlencoded({
|
||||
extended: true
|
||||
}));
|
||||
app.use(
|
||||
express.urlencoded({
|
||||
extended: true
|
||||
})
|
||||
);
|
||||
app.use(helmet());
|
||||
app.use(compression());
|
||||
app.use(cors());
|
||||
|
@ -52,7 +47,7 @@ app.use(
|
|||
})
|
||||
);
|
||||
|
||||
app.use('/api', require(''))
|
||||
app.use('/api', require('./routes/api'));
|
||||
let support = 'https://discord.gg/' + Backend.get('Info.invite');
|
||||
module.exports = (client) => {
|
||||
app.get('/', async (req, res) => {
|
||||
|
@ -105,4 +100,4 @@ module.exports = (client) => {
|
|||
console.log(`Listening on ${hostname}:${port}`);
|
||||
}, 1000 * 3);
|
||||
});
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue