mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Added make scripts, some new tests, install link now points to greasyfork
This commit is contained in:
@@ -92,6 +92,7 @@ app.get('/', function (req, res) {
|
||||
})
|
||||
|
||||
app.post('/postfeedback', function (req, res) {
|
||||
logger.LogReq(req)
|
||||
logger.Log('New feedback message', logger.GetColor('bluebg'), true)
|
||||
utils.AppendToFile('\n\n' + logger.GetDateString() + ': ' + req.body.message_field, msgFile)
|
||||
res.redirect('back')
|
||||
@@ -148,8 +149,9 @@ app.post('/isAdding', function (req, res) {
|
||||
logger.LogReq(req)
|
||||
|
||||
// automatically saves to dataFile every n write
|
||||
// FIXME: req.body.datatoadd is for backwards compatibility, remove this sometime in the future
|
||||
let result = actions.ProcessIncomingRequest(
|
||||
req.body.datatoadd,
|
||||
req.body.datatoadd || req.body,
|
||||
data,
|
||||
{ motd, version }
|
||||
)
|
||||
|
||||
Submodule modules/qmining/qmining-page updated: fb7b4fe9f2...5b589450ab
@@ -18,8 +18,6 @@
|
||||
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
let url = ''
|
||||
|
||||
const express = require('express')
|
||||
const bodyParser = require('body-parser')
|
||||
const busboy = require('connect-busboy')
|
||||
@@ -69,7 +67,7 @@ app.get('/ask', function (req, res) {
|
||||
const simpleRedirects = [
|
||||
{
|
||||
from: '/install',
|
||||
to: url + '/moodle-test-userscript/stable.user.js?install'
|
||||
to: 'https://greasyfork.org/en/scripts/38999-moodle-elearning-kmooc-test-help'
|
||||
},
|
||||
{
|
||||
from: '/servergit',
|
||||
@@ -169,8 +167,5 @@ app.post('*', function (req, res) {
|
||||
})
|
||||
|
||||
exports.app = app
|
||||
exports.setup = (x) => {
|
||||
url = x.url
|
||||
}
|
||||
|
||||
logger.Log('Qmining module started', logger.GetColor('yellow'))
|
||||
|
||||
Reference in New Issue
Block a user