Files
formbricks-formbricks/apps/web/app/api/js/route.ts
Dhruwang Jariwala ab80bc1bf2 feat: language switch (#2692)
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
2024-06-12 14:10:22 +00:00

22 lines
770 B
TypeScript

// DEPRECATED - This file is deprecated and will be removed in the future
// Deprecated since 22-03-2024
// This endpoint has been deprecated. Please use the new endpoint /api/packages/js instead.
import { responses } from "@/app/lib/api/response";
import { WEBAPP_URL } from "@formbricks/lib/constants";
export const GET = async () => {
try {
return responses.goneResponse(
"This endpoint has been deprecated. Please use the new endpoint /api/packages/<package-name>",
{
"x-deprecated": "true",
"x-deprecated-date": "22-03-2024",
"x-deprecated-redirect": `${WEBAPP_URL}/api/packages/js`,
},
true
);
} catch (error) {
return responses.internalServerErrorResponse("this endpoint is not available");
}
};