Handle trailing slash in NextJS API routes?

I'm trying to create an integration to Fibery through NextJS's API routes, but Fibery's integration engine seems to send one request to api/integration/ (trailing slash) and some to api/integration/schema etc, which I can't make work with the API dir. πŸ˜„ Any way to force index.ts in API route to handle both the trailing slash and without?
1 Reply
mmurto
mmurtoβ€’14mo ago
Never mind, stupid error on reading the Fibery docs πŸ™‚