@@ -18,7 +18,6 @@ import { type OpenId4VcVerificationSessionRecord, OpenId4VcVerificationSessionSt
1818import express , { type NextFunction , type Request , type Response } from 'express'
1919import z from 'zod'
2020import { agent } from './agent'
21- import { validateVerificationRequest , zValidateVerificationRequestSchema } from './ai'
2221import {
2322 funkeDeployedAccessCertificate ,
2423 funkeDeployedAccessCertificateRoot ,
@@ -539,24 +538,3 @@ apiRouter.use((error: Error, _request: Request, response: Response, _next: NextF
539538 error : error . message ,
540539 } )
541540} )
542-
543- apiRouter . post ( '/validate-verification-request' , async ( request : Request , response : Response ) => {
544- try {
545- const validateVerificationRequestBody = zValidateVerificationRequestSchema . parse ( request . body )
546- const result = await validateVerificationRequest ( validateVerificationRequestBody )
547- return response . json ( result )
548- } catch ( error ) {
549- if ( error instanceof z . ZodError ) {
550- return response . status ( 400 ) . json ( {
551- error : 'Invalid request body' ,
552- details : error . errors ,
553- } )
554- }
555-
556- console . error ( 'Error validating verification request:' , error )
557- return response . status ( 500 ) . json ( {
558- error : 'Internal server error during verification validation' ,
559- message : error instanceof Error ? error . message : 'Unknown error' ,
560- } )
561- }
562- } )
0 commit comments