Revert!
This commit is contained in:
parent
c146ded0ca
commit
aca3026b95
1 changed files with 3 additions and 7 deletions
10
index.js
10
index.js
|
@ -44,10 +44,6 @@ app.listen(PORT, () => {
|
|||
console.log("Violet's Purgatory is now listening on port: " + PORT)
|
||||
})
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.send(pageUpdate())
|
||||
})
|
||||
|
||||
function pageUpdate() {
|
||||
var statuses = {
|
||||
"online": {
|
||||
|
@ -266,9 +262,7 @@ function pageUpdate() {
|
|||
|
||||
html = html.replace("{THUMBOR}", getThumbor())
|
||||
|
||||
// fs.writeFileSync(path.join(__dirname, 'static/index.html'), html)
|
||||
|
||||
return html
|
||||
fs.writeFileSync(path.join(__dirname, 'static/index.html'), html)
|
||||
}
|
||||
|
||||
// Lanyard Stuffs
|
||||
|
@ -300,6 +294,8 @@ lanyard.addEventListener("message", (res) => {
|
|||
}
|
||||
})
|
||||
|
||||
pageUpdate()
|
||||
|
||||
app.use((req, res, next) => {
|
||||
res.status(404).send(`
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
|
|
Loading…
Reference in a new issue