infinity mirror effect

This commit is contained in:
metacryst
2025-12-29 18:13:03 -06:00
parent 39959246cd
commit b4e388b14d
2 changed files with 36 additions and 26 deletions

View File

@@ -8,18 +8,21 @@ import forms from 'forms'
import { initWebSocket } from './ws.js'
import util from './util.js'
import getAllDownloadsFiles from "./getDownloads.js"
export default class Server {
store;
registerRoutes(router) {
router.get('/downloads', this.getDownloads)
router.get('/*', this.get)
return router
}
index = async (req, res) => {
let filePath = path.join(util.CAVE_PATH, "index.html");
res.sendFile(filePath)
getDownloads = async (req, res) => {
let arr = await getAllDownloadsFiles()
console.log(arr)
res.json(arr)
}
get = async (req, res) => {