This commit is contained in:
2026-08-26 12:19:20 +02:00
parent 559ba6d51e
commit f1a2850dc8
7 changed files with 0 additions and 101 deletions
-19
View File
@@ -1,19 +0,0 @@
const crypto = require("node:crypto")
const DefaultError = require("../errors/DefaultError")
function register({ email, username }) {
const canRegister = true
if (canRegister === true) {
return {
id: crypto.randomUUID(),
username: username,
email: email
}
} else {
throw new DefaultError(418, "I'm a teapot", "", "TeaPotExeception")
}
}
module.exports = {
register
}