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.
This commit is contained in:
2026-01-19 02:47:55 +01:00
parent c96e728228
commit 4975f7e191
4 changed files with 68 additions and 1 deletions

7
routes/static.js Normal file
View File

@@ -0,0 +1,7 @@
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