mirror of
https://github.com/status-im/spiffworkflow-connector.git
synced 2025-02-23 12:08:13 +00:00
make waku url a config w/ burnettk
This commit is contained in:
parent
c60a27f657
commit
6b259e1ca6
@ -1,6 +1,7 @@
|
|||||||
import json
|
import json
|
||||||
import requests
|
import requests
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
from flask import current_app
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
@ -10,7 +11,7 @@ class SendMessage:
|
|||||||
recipient: str
|
recipient: str
|
||||||
|
|
||||||
def execute(self):
|
def execute(self):
|
||||||
url = f'http://localhost:7005/sendMessage'
|
url = f'{current_app.config["WAKU_PROXY_BASE_URL"]}/sendMessage'
|
||||||
headers = {'Accept': 'application/json', 'Content-type': 'application/json'}
|
headers = {'Accept': 'application/json', 'Content-type': 'application/json'}
|
||||||
request_body = {"message": self.message, "recipient": self.recipient, "message_type": self.message_type}
|
request_body = {"message": self.message, "recipient": self.recipient, "message_type": self.message_type}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user