Closed talentlessguy closed 4 years ago
Got partitially implemented in https://github.com/talentlessguy/tinyhttp/commit/ce2dd51e510b042e1e404238332ec136511fb39a
not sure if Router also should be used as a ware, so closing it as it is implemented already
Describe the solution you'd like
tinyhttp needs to have support of
app.use(Router)
andapp.use(App)
to be more compatible with express.So we could do this:
and this:
Additional context
Polka.js implementation: https://github.com/lukeed/polka/blob/88f380272973019df5dc7c37611ac987bcd67d47/packages/polka/index.js#L50-61