© 2026 Hedgehog Software, LLC
'Effect<Response, unknown, unknown>'
export const DELETE = guestRoute( (context) => Effect.gen(function* (_) { const user_id = context.props.user.id; const { photo_id } = yield* parseParams(context, deleteParamsSchema); yield* P.PhotoService.delete(photo_id, user_id); return new Response(null, { status: 200 }); }).pipe( Effect.flatMap(() => Effect.catchTags({ PhotoNotOwned: () => Effect.fail(new Unauthorized()), PhotoNotFound: () => new Response(null, { status: 404 }), }), ), ), ServerRuntime, );
Effect<Response, InvalidParams | Defect | PhotoNotFound | PhotoNotOwned, PhotoService>