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.
7 lines
195 B
JavaScript
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 |