just finish it already

This commit is contained in:
Enstrayed
2025-06-13 22:59:07 -07:00
parent b4ecb63e43
commit cb289889d2
5 changed files with 207 additions and 22 deletions

View File

@@ -7,7 +7,7 @@ import { marked } from "marked"
var timeSinceLastQuery = Date.now()-10000
var cachedResult = ""
app.get("/", (rreq, rres) => {
app.get("/indexbeta", (rreq, rres) => {
if (Date.now() < timeSinceLastQuery+10000) {
rres.send(cachedResult)
} else {
@@ -17,6 +17,10 @@ app.get("/", (rreq, rres) => {
}
})
app.get("/", (rreq, rres) => {
rres.sendFile(process.cwd()+"/website/templates/construction.html")
})
app.get("/static/*", (rreq,rres) => {
rres.sendFile(process.cwd()+"/website/static/"+rreq.url.replace("/static/",""))
})