feat(confidence-engine): establish authenticated product boundary
This commit is contained in:
@@ -3,8 +3,9 @@ import {
|
||||
PROMPT_VERSIONS,
|
||||
DEFAULT_PROMPT_VERSION,
|
||||
} from "@/lib/analysis";
|
||||
import { withAuthenticatedApi } from "@/lib/supabase/api-auth.js";
|
||||
|
||||
export async function POST(request) {
|
||||
async function post(request) {
|
||||
try {
|
||||
const body = await request.json();
|
||||
|
||||
@@ -47,3 +48,5 @@ export async function POST(request) {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export const POST = withAuthenticatedApi(post);
|
||||
|
||||
Reference in New Issue
Block a user