- [API] Added User routes (need polishing because it parses and sends sensitive data)
This commit is contained in:
13
models/User.js
Normal file
13
models/User.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const User = {
|
||||
"id": "/UserModel",
|
||||
"type": Object,
|
||||
"properties": {
|
||||
"name": { "type": "string" },
|
||||
"mail": { "type": "string" },
|
||||
"password": { "type": "string" },
|
||||
"banned": { "type": "boolean"},
|
||||
},
|
||||
"required": ["name", "password", "mail"]
|
||||
}
|
||||
|
||||
module.exports = User
|
||||
Reference in New Issue
Block a user