mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-10-26 01:05:49 -04:00
add support for per-page layouts
This commit is contained in:
@@ -24,7 +24,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
res.setHeader("Pragma", "no-cache");
|
||||
|
||||
if (req.method !== "POST") {
|
||||
return res.status(405).send(""); // 405 Method Not Allowed
|
||||
return res.status(405).end(); // 405 Method Not Allowed
|
||||
}
|
||||
|
||||
const { body } = req;
|
||||
|
||||
@@ -13,7 +13,7 @@ Sentry.init({
|
||||
const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
try {
|
||||
if (req.method !== "GET") {
|
||||
return res.status(405).send(""); // 405 Method Not Allowed
|
||||
return res.status(405).end(); // 405 Method Not Allowed
|
||||
}
|
||||
|
||||
const client = new faunadb.Client({
|
||||
|
||||
Reference in New Issue
Block a user