mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Added main site, code formatting
This commit is contained in:
parent
814abae86b
commit
77427399db
4 changed files with 61 additions and 29 deletions
|
@ -18,6 +18,8 @@
|
|||
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
const siteUrl = 'https://qmining.frylabs.net' // http(s)//asd.basd
|
||||
|
||||
const express = require('express')
|
||||
const bodyParser = require('body-parser')
|
||||
const busboy = require('connect-busboy')
|
||||
|
@ -55,8 +57,9 @@ app.use(bodyParser.json({
|
|||
// --------------------------------------------------------------
|
||||
|
||||
app.get('/', function (req, res) {
|
||||
// res.render()
|
||||
res.end('henlo')
|
||||
res.render('main/main', {
|
||||
siteurl: siteUrl
|
||||
})
|
||||
})
|
||||
|
||||
app.get('*', function (req, res) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue