Implement a rate limiter using middleware in a Next.js API route.
Category: Coding
Tags: api, security, rate-limit