mirror of
https://github.com/ApfelTeeSaft/Reload-Backend.git
synced 2026-08-26 19:33:26 +00:00
Fixxed Errors That Didint Allow HTTPS To Work
Fixed lol
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ module.exports = function(websiteApp) {
|
||||
const oauthCallback = require('./Data/js/oauthCallback')(DISCORD_API_URL, CLIENT_ID, CLIENT_SECRET, REDIRECT_URI);
|
||||
websiteApp.get('/oauth2/callback', oauthCallback);
|
||||
|
||||
websiteApp.post('/register-user', require('./Data/js/registerUser '));
|
||||
websiteApp.post('/register-user', require('./Data/js/registerUser.js'));
|
||||
|
||||
websiteApp.get('/register', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, './Data/html/register.html'));
|
||||
|
||||
@@ -7,6 +7,7 @@ const path = require("path");
|
||||
const kv = require("./structs/kv.js");
|
||||
const config = JSON.parse(fs.readFileSync("./Config/config.json").toString());
|
||||
const WebSocket = require('ws');
|
||||
const https = require("https"); // Import the https module
|
||||
|
||||
const log = require("./structs/log.js");
|
||||
const error = require("./structs/error.js");
|
||||
|
||||
Reference in New Issue
Block a user