fix type error
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { db } from "../../../utils/db"
|
||||
import { entryTable } from "../../../db/schema"
|
||||
import { httpResponse } from "../../../utils/response";
|
||||
import type { APIContext } from "astro";
|
||||
|
||||
export async function POST({ request }) {
|
||||
export async function POST({ request }: APIContext) {
|
||||
|
||||
if (request.headers.get("Content-Type") === "application/json") {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user