mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Removed views
This commit is contained in:
parent
8189ddf362
commit
f26d61a209
11 changed files with 7 additions and 603 deletions
|
@ -20,7 +20,7 @@
|
|||
|
||||
const startHTTPS = true
|
||||
const port = 5000
|
||||
const httpsport = 8443
|
||||
const httpsport = 5001
|
||||
|
||||
const express = require('express')
|
||||
const vhost = require('vhost')
|
||||
|
@ -29,6 +29,7 @@ logger.Load()
|
|||
const utils = require('./utils/utils.js')
|
||||
const http = require('http')
|
||||
const https = require('https')
|
||||
const cors = require('cors')
|
||||
|
||||
const extraModulesFile = './extraModules.json'
|
||||
const modulesFile = './modules.json'
|
||||
|
@ -52,6 +53,7 @@ try {
|
|||
}
|
||||
|
||||
const app = express()
|
||||
app.use(cors())
|
||||
|
||||
app.use(function (req, res, next) {
|
||||
res.on('finish', function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue