mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
chore: revert unrelated changes
This commit is contained in:
parent
5af5a8696a
commit
6edc2731da
@ -121,10 +121,10 @@ export const defineWrappedResponseHandler = <T extends EventHandlerRequest, D> (
|
|||||||
// do something before the route handler
|
// do something before the route handler
|
||||||
const response = await handler(event)
|
const response = await handler(event)
|
||||||
// do something after the route handler
|
// do something after the route handler
|
||||||
return response
|
return { response }
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// Error handling
|
// Error handling
|
||||||
return err
|
return { err }
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user