Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
2 replies
mmurto

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?
Was this page helpful?