Added the Sheepstar API to the Archive
This commit is contained in:
15
SheepstarAPIV1/validation/mediaValidation.js
Normal file
15
SheepstarAPIV1/validation/mediaValidation.js
Normal file
@ -0,0 +1,15 @@
|
||||
const Joi = require('joi');
|
||||
|
||||
module.exports.upload = Joi.object({
|
||||
assetEnding: Joi.string()
|
||||
.alphanum()
|
||||
.min(3)
|
||||
.max(10),
|
||||
assetName: Joi.string()
|
||||
.alphanum()
|
||||
.min(5)
|
||||
.max(20),
|
||||
assetDescription: Joi.string()
|
||||
.min(5)
|
||||
.max(250)
|
||||
});
|
Reference in New Issue
Block a user