Skip to content

Commit

Permalink
remove route unlock
Browse files Browse the repository at this point in the history
  • Loading branch information
luistorres committed May 2, 2024
1 parent 97b943d commit 2edb015
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/web-app/app/api/generate/route.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { generateMerkleRoot } from '@/app/_server/projects/generate-merkle-root';

export async function GET(_request: Request) {
const root = await generateMerkleRoot();

if (typeof root === 'object' && 'error' in root) {
return new Response(`Generate root error: ${root.error}`, {
status: 500,
});
}
// const root = await generateMerkleRoot();
//
// if (typeof root === 'object' && 'error' in root) {
// return new Response(`Generate root error: ${root.error}`, {
// status: 500,
// });
// }
//
// return Response.json(root);

return Response.json(root);
return new Response('root');
}

0 comments on commit 2edb015

Please sign in to comment.