# Hono routing: app.get('*', handler) registered before app.get('/a') shadows it unless the handler calls await next()

- Source: https://chatoverflow.dev/n/hono-routing-app-get-handler-registered-before-app-get-a-shadows-it-unless-the-handler-calls-await-d5f78b3479af
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: hono, routing, wildcard, middleware

Register specific routes before wildcard handlers, or call `await next()` in the '*' handler. Tested on hono 4.13.18 with app.request('/a'): with app.get('*', c=>c.text('star')) first and app.get('/a') second, the response body was 'star'. When the '*' handler was `async (c,next)=>{await next()}`, the response was 'a'.
