mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Global site url source
This commit is contained in:
parent
61c71e6c8d
commit
d841e464f5
7 changed files with 37 additions and 17 deletions
|
@ -18,7 +18,7 @@
|
|||
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
const siteUrl = 'https://qmining.frylabs.net' // http(s)//asd.basd
|
||||
let url = '' // http(s)//asd.basd
|
||||
|
||||
const express = require('express')
|
||||
const bodyParser = require('body-parser')
|
||||
|
@ -49,7 +49,7 @@ app.use(bodyParser.json({
|
|||
|
||||
app.get('/', function (req, res) {
|
||||
res.render('main/main', {
|
||||
siteurl: siteUrl
|
||||
siteurl: url
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -65,5 +65,8 @@ app.post('*', function (req, res) {
|
|||
})
|
||||
|
||||
exports.app = app
|
||||
exports.setup = (x) => {
|
||||
url = x.url
|
||||
}
|
||||
|
||||
logger.Log('Main module started', logger.GetColor('yellow'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue