validateShortenPost(){

        return celebrate({
            [Segments.BODY] : Joi.object().keys({
                originalUrl: Joi.string().uri().required().min(1),
            }),
        });
    }
/**
     * Validator to validate a request POST in /shorten
     */
Validator to validate a request POST in /shorten
Validator to validate a request POST in / shorten
validateShortenPost(){
        return celebrate({
            [Segments.BODY] : Joi.object().keys({
                originalUrl: Joi.string().uri().required().min(1),
            }),
        });
    }
validateShortenPost ( ) { return celebrate ( { [ Segments . BODY ] : Joi . object ( ) . keys ( { originalUrl : Joi . string ( ) . uri ( ) . required ( ) . min ( 1 ) , } ) , } ) ; }
Validator to validate a request POST in /shorten
Validator to validate a request POST in / shorten