Yggdrasil/routes/static.js
azures04 4975f7e191 Add static registration page and static file serving
Added a new registration HTML page under data/static/register.html and introduced a static file serving route in routes/static.js. Minor adjustments were made to authRepository.js and userRepository.js to update module imports. This enables serving static assets and provides a registration UI.
2026-01-19 02:47:55 +01:00

7 lines
195 B
JavaScript

const path = require("node:path")
const expres = require("express")
const router = expres.Router()
router.use(expres.static(path.join(process.cwd(), "data", "static")))
module.exports = router