When you mount two apps on the same route only the first one works and the other doesn't get reached.
To Reproduce
import{App}from'@tinyhttp/app'constapp=newApp(),app1=newApp(),app2=newApp()app2.use((req,res,next)=>{console.log('ping')res.send('hi from app 2')})app1.use((req,res,next)=>{console.log('pong')next()})app.use('/test',app1)app.use('/test',app2)app.listen(3000)
Describe the bug
When you mount two apps on the same route only the first one works and the other doesn't get reached.
To Reproduce
Expected behavior
if not found it should go to the next app.
Versions
node: 16.3@tinyhttp/app: 1.3.11Additional context
#276
The text was updated successfully, but these errors were encountered: