2026-05-14 11:15:30 -04:00
|
|
|
const Joi = require('joi');
|
|
|
|
|
const domainRegistrySchema = Joi.object().keys({
|
|
|
|
|
register_domain_label: Joi.string().alphanum().min(1).max(63).required(),
|
2026-05-14 12:44:30 -04:00
|
|
|
register_domain_tld: Joi.string().valid("internal", "tomato", "secret", "money", "lol", "bowling", "lmao", "john").required()
|
2026-05-14 11:15:30 -04:00
|
|
|
}).unknown(true);
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
|
test: (body) => {
|
|
|
|
|
return domainRegistrySchema.validate(body);
|
|
|
|
|
}
|
|
|
|
|
}
|