All routes mounted under the path you pass to app.use will require a valid license key before the request is forwarded.
The middleware validates the incoming license key against POST /api/v1/validate on each request. Requests that fail validation receive an error response before reaching your route handlers.
Load your API key from an environment variable (process.env.KEYPORT_API_KEY) rather than embedding it in source code.