Use AJV, refactor a lot

This commit is contained in:
2020-11-18 21:02:16 -06:00
parent ddf1a833d6
commit 95d7360ee4
8 changed files with 96 additions and 64 deletions

10
api/models/schemas.js Normal file
View File

@@ -0,0 +1,10 @@
module.exports = {
"email": {
"type": "string",
"format": "email"
},
"id": {
"type": "string",
"minLength": 1
}
}