mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-04 22:00:01 -06:00
Co-authored-by: Johannes <johannes@formbricks.com> Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
22 lines
770 B
TypeScript
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");
|
|
}
|
|
};
|