mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Removed old motd handling
This commit is contained in:
parent
b8c1a6ca97
commit
8cc7776f09
3 changed files with 2 additions and 14 deletions
|
@ -36,7 +36,6 @@ const stat = require('./stat.js');
|
|||
|
||||
const recivedFiles = "public/recivedfiles";
|
||||
const uloadFiles = "public/f";
|
||||
const motdFile = "public/motd";
|
||||
const staticFile = "public/data/static";
|
||||
const dataFile = "public/data.json";
|
||||
const countFile = "public/data/count";
|
||||
|
@ -121,14 +120,14 @@ app.get('/manual', function(req, res) {
|
|||
});
|
||||
|
||||
app.get('/public', function(req, res) {
|
||||
var response = '@' + utils.ReadFile(motdFile);
|
||||
var response = '@Plz update :)';
|
||||
response += utils.ReadFile(staticFile);
|
||||
res.write(response);
|
||||
res.end();
|
||||
});
|
||||
|
||||
app.get('/static', function(req, res) {
|
||||
var response = '@' + utils.ReadFile(motdFile);
|
||||
var response = '@Plz update :)';
|
||||
response += utils.ReadFile(staticFile);
|
||||
res.write(response);
|
||||
res.end();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue