diff --git a/node/server.js b/node/server.js index d073756ce..0c8df2455 100644 --- a/node/server.js +++ b/node/server.js @@ -81,13 +81,6 @@ async.waterfall([ res.sendfile(filePath, { maxAge: 1000*60*60 }); }); - //redirect the newpad requests - app.get('/newpad', function(req, res) - { - res.header("Server", serverName); - res.redirect('/p/' + randomPadName()); - }); - //let the server listen app.listen(settings.port); console.log("Server is listening at port " + settings.port); @@ -135,15 +128,3 @@ function errorlog(e) console.error(timeStr + JSON.stringify(e)); } } - -function randomPadName() -{ - var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz"; - var string_length = 10; - var randomstring = ''; - for (var i=0; i
- New Pad + New Pad
-
or create a Pad with the name
+
or create a Pad with the name