refactor: restructure API routes from v1/v2/v3 to domain-based (skydive/cms/herowars)
This commit is contained in:
@@ -5,7 +5,7 @@ var DropzoneSchema = new mongoose.Schema({
|
||||
slug: { type: String, lowercase: true, unique: true },
|
||||
lieu: String,
|
||||
oaci: String,
|
||||
author: { type: mongoose.Schema.Types.ObjectId, ref: 'User' }
|
||||
author: { type: mongoose.Schema.Types.UUID, ref: 'User' }
|
||||
}, {timestamps: true, toJSON: {virtuals: true}});
|
||||
|
||||
DropzoneSchema.pre('validate', function (next) {
|
||||
|
||||
Reference in New Issue
Block a user