aboutsummaryrefslogtreecommitdiffstats
path: root/routes/send.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-02 14:47:08 -0700
committerAdam Soltys <[email protected]>2022-09-02 14:47:14 -0700
commit3161dd7ee95b6c7d70f8341298dd4fab84cda8b0 (patch)
tree16cd6c55d5dc481331b1e8b640d179f193e7ea13 /routes/send.js
parent7a8d64833de8873afb92982b3f5bfff59b30c542 (diff)
downloadcoinos-server-3161dd7ee95b6c7d70f8341298dd4fab84cda8b0.tar.gz
coinos-server-3161dd7ee95b6c7d70f8341298dd4fab84cda8b0.zip
es6 migration
Diffstat (limited to 'routes/send.js')
-rw-r--r--routes/send.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/routes/send.js b/routes/send.js
index c6de3acb..7cc403e1 100644
--- a/routes/send.js
+++ b/routes/send.js
@@ -1,7 +1,10 @@
-import axios from 'axios';
-import { v4 as uuidv4 } from 'uuid';
+import { callWebhook } from "../lib/webhooks.js";
+import axios from "axios";
+import { v4 as uuidv4 } from "uuid";
+import { notify } from "../lib/notifications.js";
+import { sendLiquid } from "./liquid/send.js";
-export default ah(async (req, res, next) => {
+export default async (req, res, next) => {
let {
amount,
address,
@@ -212,4 +215,4 @@ export default ah(async (req, res, next) => {
l.error("problem sending internal payment", user.username, e.message);
return res.status(500).send(e.message);
}
-});
+};