Take a look at the NextJS App Playground example. They have API route examples like this one that shows how to get request params based on the `searchParams` which sounds like it is what you want.
The React Framework
Yeah I use the app playground repo for reference sometimes, I find that is you are using the app directory it is the best place to get examples from Vercel. The NextJS examples repo is mostly page router stuff.
Appwrite - The open-source backend cloud platform. Add Auth, Databases, Functions, and Storage to your product and build any application at any scale while using your preferred coding languages and tools.
Are there any template nextjs projects we can use to quickly get started?
2 projects | /r/nextjs | 27 May 2021
Mastering Data Fetching in React: A Comprehensive Guide to SWR
2 projects | dev.to | 16 Oct 2023
Building a Blog Subscription and Pusher with AirCode and Resend
7 projects | dev.to | 28 Aug 2023
How to build and deploy a modern-day Next.js application
6 projects | dev.to | 19 Jul 2023
Next.js Weekly #14: Faster Dev Server, Platform Starter Kit v2, Misconceptions about Client Components [👇 all news in comments]
4 projects | /r/nextjs | 6 Jul 2023