function validateApiRoute(params) {
  const { makeswift } = params;
  if (!Array.isArray(makeswift)) {
    throw new Error(
      `The Makeswift Next.js API handler must be used in a dynamic catch-all route named \`[...makeswift]\`.
Received "${makeswift}" for the \`makeswift\` param instead.
Read more about dynamic catch-all routes here: https://nextjs.org/docs/routing/dynamic-routes#catch-all-routes`
    );
  }
  return "/" + makeswift.join("/");
}
export {
  validateApiRoute
};
//# sourceMappingURL=base.js.map