diff options
| author | Adam Soltys <[email protected]> | 2022-10-25 13:55:28 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-10-25 13:55:32 -0700 |
| commit | 2d7352ed9642ceea8beb32723191eb16d56830a6 (patch) | |
| tree | 0aef2e7bd3d82144708ee62f4d4a2f599f620db2 /routes/liquid/broadcast.js | |
| parent | 6128d0ef6cd994807e6b30420be0874f1a8e94ef (diff) | |
| download | coinos-server-2d7352ed9642ceea8beb32723191eb16d56830a6.tar.gz coinos-server-2d7352ed9642ceea8beb32723191eb16d56830a6.zip | |
require pin on certain endpoints
Diffstat (limited to 'routes/liquid/broadcast.js')
| -rw-r--r-- | routes/liquid/broadcast.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/routes/liquid/broadcast.js b/routes/liquid/broadcast.js index 03a71b2b..820c0be1 100644 --- a/routes/liquid/broadcast.js +++ b/routes/liquid/broadcast.js @@ -1,8 +1,11 @@ import { emit } from "$lib/sockets"; import store from "$lib/store"; +import { requirePin } from "$lib/utils"; export default async (req, res) => { try { + await requirePin(req); + const { user } = req; let hash = await lq.sendRawTransaction(req.body.tx); |
