import type { ResolveRequest , ResolveResponse } from '@resolve-js/core' ; import respondWithError from './respond-with-error' ; const handler = async ( req , res ) => { try { await req . resolve . eventstoreAdapter . resetReplication ( ) ; res . status ( 200 ) ; res . end ( ) ; } catch ( error ) { respondWithError ( 'reset' , res , error ) ; } } ; export default handler ;