Search
Star
1.4k
Feedback
Setup for Free
N
Nuxt
•
12mo ago
•
12 replies
Phillip
How can I access the Request object in a Server API route?
I need to access the request of type Request in a server API route
. I thought about this
; but seems like this is not allowed in a server API route
.
const request = useRequestEvent();
const request = useRequestEvent();
Nuxt
Join
Nuxt Community Chat Server
31,861
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
const
request
=
useRequestEvent
();
const
request
=
useRequestEvent
();
Similar Threads
server\api access
N
Nuxt / ❓・help
2y ago
server api route catchall
N
Nuxt / ❓・help
2y ago
Please how can I use the types of a Nitro server route in a declaration file
N
Nuxt / ❓・help
3y ago
How-to set a response header in the server route
N
Nuxt / ❓・help
15mo ago