UNPKG

steady-api

Version:

Configurable REST API built with Express and TypeScript

17 lines (14 loc) 263 B
import * as Joi from 'joi'; /** * Paramter type: url * Used for: urls */ const type = { name: "url", description: "Valid URLs", validator: function(param) { return Joi.string().uri(); }, example: "http://www.example.com" } export default type;