mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Removed unused old format handlers
This commit is contained in:
parent
b0bc051094
commit
faf394db40
4 changed files with 32 additions and 135 deletions
|
@ -34,7 +34,6 @@ const actions = require('../utils/actions.js')
|
|||
|
||||
const recivedFiles = 'public/recivedfiles'
|
||||
const uloadFiles = 'public/f'
|
||||
const staticFile = 'public/data/static'
|
||||
const dataFile = 'public/data.json'
|
||||
const msgFile = 'stats/msgs'
|
||||
|
||||
|
@ -72,20 +71,6 @@ app.get('/manual', function (req, res) {
|
|||
logger.LogReq(req)
|
||||
})
|
||||
|
||||
app.get('/public', function (req, res) {
|
||||
var response = '@Plz update :)'
|
||||
response += utils.ReadFile(staticFile)
|
||||
res.write(response)
|
||||
res.end()
|
||||
})
|
||||
|
||||
app.get('/static', function (req, res) {
|
||||
var response = '@Plz update :)'
|
||||
response += utils.ReadFile(staticFile)
|
||||
res.write(response)
|
||||
res.end()
|
||||
})
|
||||
|
||||
app.get('/legacy', function (req, res) {
|
||||
var f = utils.ReadFile(dataFile)
|
||||
var d = actions.LoadJSON(f)
|
||||
|
@ -110,11 +95,7 @@ app.post('/postfeedback', function (req, res) {
|
|||
})
|
||||
|
||||
app.get('/postfeedback', function (req, res) {
|
||||
// TODO: res.redirect("/"); or if needs this anyways, becouse /postfeedback post handler already
|
||||
// redirects
|
||||
res.render('qmining/main', {
|
||||
sdata: utils.ReadFile(staticFile)
|
||||
})
|
||||
res.redirect('/')
|
||||
})
|
||||
|
||||
app.post('/isAdding', function (req, res) {
|
||||
|
@ -154,7 +135,7 @@ app.get('/greasy', function (req, res) {
|
|||
})
|
||||
|
||||
app.get('/install', function (req, res) {
|
||||
res.redirect('http://qmining.frylabs.net/moodle-test-userscript/stable.user.js')
|
||||
res.redirect(siteUrl + '/moodle-test-userscript/stable.user.js?install')
|
||||
res.end()
|
||||
logger.LogReq(req)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue