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:
7
routes/static.js
Normal file
7
routes/static.js
Normal 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
|
||||
Reference in New Issue
Block a user