Files
js/utils/api.ts
T
easyrun42 af66f2a52b feat: farcaster frame (superchain) (#2294)
* feat: superchain farcaster frame

* chore: frame images

* chore: cleanup

* chore: updates

* chore: update plan image

* chore: update pnpm lock yaml

* chore: replace frame to be on superchain page
2024-03-12 15:29:11 +00:00

23 lines
466 B
TypeScript

import { NextResponse } from "next/server";
export const errorResponse = (message: string, status: 400 | 500) => {
return NextResponse.json(
{ message },
{
status,
},
);
};
export const redirectResponse = (url: string, status: 200 | 302) => {
return NextResponse.redirect(url, {
status,
});
};
export const successHtmlResponse = (htmlResponse: string, status: 200) => {
return new NextResponse(htmlResponse, {
status,
});
};