Added main site, code formatting

This commit is contained in:
YourFriendlyNeighborhoodDealer 2019-08-15 11:15:24 +02:00
parent 814abae86b
commit 77427399db
4 changed files with 61 additions and 29 deletions

View file

@ -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) {