From 8100efb48c955198bef19e412987b654329f68e8 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Mon, 20 Jul 2020 23:48:27 -0400 Subject: [PATCH] expose api as POST not GET --- lbry/service/daemon.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lbry/service/daemon.py b/lbry/service/daemon.py index eb4ae9a49..fc54f5bcc 100644 --- a/lbry/service/daemon.py +++ b/lbry/service/daemon.py @@ -79,8 +79,7 @@ class Daemon: # streams[event_name] = WeakSet() # event_stream.listen(partial(self.broadcast_event, component.name, event_name)) self.app.router.add_get('/ws', self.on_connect) - self.app.router.add_get('/lbryapi', self.on_rpc) - self.app.router.add_get('/api', self.on_rpc) + self.app.router.add_post('/api', self.on_rpc) self.app.on_shutdown.append(self.on_shutdown) self.runner = AppRunner(self.app)