diff options
| author | Adam Soltys <[email protected]> | 2022-10-07 21:10:48 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-10-07 21:10:48 -0700 |
| commit | 756017c5bf6b1858c231d39670b217a606f4e454 (patch) | |
| tree | d5eb774ac6c83ff2079766ba2a1f65ce3dd64c31 /index.js | |
| parent | 0eb3dcabf63cda38dec86f9b3d4accac6c057f4d (diff) | |
| download | coinos-server-756017c5bf6b1858c231d39670b217a606f4e454.tar.gz coinos-server-756017c5bf6b1858c231d39670b217a606f4e454.zip | |
fix liquid asset receiving
Diffstat (limited to 'index.js')
| -rw-r--r-- | index.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3,6 +3,7 @@ import persist from "./lib/persist"; import config from "./config/index"; import store from "./lib/store"; import { l, err } from "./lib/logging"; +import { optionalAuth } from "$lib/passport"; import "./db"; import "./lib/sockets"; @@ -28,7 +29,8 @@ if (config.lna) store.networks.push("lightning"); let host = process.env.HOST || "0.0.0.0"; let port = process.env.PORT || 3119; -app.post('/echo', async (req, res) => { +app.post('/echo', optionalAuth, async (req, res) => { + console.log(req.user.username) console.log(req.body) res.send(req.body); }); |
