UNPKG

@tsed/platform-fastify

Version:
4 lines (3 loc) 127 B
export function toPrefix(endpoint) { return endpoint === "/" ? "/" : endpoint.endsWith("/") ? endpoint : `${endpoint}/`; }