Added the Sheepstar API to the Archive

This commit is contained in:
2022-09-06 16:37:56 +02:00
parent d6c272cdaf
commit bb78376745
36 changed files with 5346 additions and 0 deletions

View File

@ -0,0 +1,26 @@
const Joi = require('joi');
module.exports.short = Joi.object({
original_url: Joi.string()
.min(5)
.uri()
.max(250)
.required(),
custom_url: Joi.string()
.alphanum()
.min(2)
.max(15),
show_meta_data: Joi.bool(),
meta_title: Joi.string()
.min(2)
.max(25),
meta_description: Joi.string()
.min(5)
.max(100),
meta_image: Joi.string()
.uri()
.min(5)
.max(255),
meta_color: Joi.string()
.pattern(new RegExp("^#[A-Fa-f0-9]{6}$"))
});