Archived
2

added GET /user route

This commit is contained in:
VLE2FE
2020-04-24 12:25:32 +02:00
parent 8bf408138f
commit a64229d1dc
9 changed files with 385 additions and 33 deletions

View File

@ -1,7 +1,7 @@
import mongoose from 'mongoose';
const UserSchema = new mongoose.Schema({
name: String,
name: {type: String, index: {unique: true}},
email: String,
pass: String,
key: String,