- [API] Added User routes (need polishing because it parses and sends sensitive data)

This commit is contained in:
Alexis
2020-05-23 21:48:27 +02:00
parent 64389a3c07
commit 08b0b94bd8
10 changed files with 794 additions and 113 deletions

13
models/User.js Normal file
View 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