Minimalistic routing engine for typescript