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

View File

@@ -1,5 +1,6 @@
const bcrypt = require("bcryptjs")
const database = require("../modules/database")
const utils = require("../modules/utils")
const { DefaultError } = require("../errors/errors")
async function getUser(identifier, requirePassword = false) {

View File

@@ -1,6 +1,5 @@
const utils = require("../modules/utils")
const crypto = require("node:crypto")
const logger = require("../modules/logger")
const database = require("../modules/database")
const { DefaultError } = require("../errors/errors")