forgor about cors 💀

This commit is contained in:
2022-12-30 12:19:07 +01:00
parent 1f22aa4061
commit f01401790f
3 changed files with 57 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
import { BotClient } from './structures/Client';
import { MemberCount } from './structures/MemberCount';
import express from 'express';
import cors from 'cors';
import config from './cfg.json';
require('dotenv').config();
@@ -8,6 +9,8 @@ const client = new BotClient();
client.boot();
const app = express();
app.use(cors());
const members = new MemberCount();
let port = process.env.PORT || config.api.fallbackPort;