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
import { App } from '@tinyhttp/app'
const app = new App(), app1 = new App(), app2 = new App()
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)
$ curl localhost:3000/test
Not Found
Expected behavior
if not found it should go to the next app and send "hi from app 2"
Versions
node: 16.3
@tinyhttp/app: 1.3.11
Additional context
#276
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 and send "hi from app 2"
Versions
node: 16.3@tinyhttp/app: 1.3.11Additional context
#276