UNPKG

itty-router

Version:

A tiny, zero-dependency router, designed to make beautiful APIs in any environment.

2 lines (1 loc) 119 B
const o=o=>{o.proxy=new Proxy(o.proxy??o,{get:(r,p)=>r[p]?.bind?.(o)??r[p]??r?.params?.[p]})};export{o as withParams};