Fuck flask
This commit is contained in:
@@ -17,9 +17,9 @@ class MailController:
|
||||
self._auth_data = auth_data
|
||||
|
||||
def _register_routes(self, app):
|
||||
app.add_url_rule("/mail/send", view_func=self.send, methods=['POST'])
|
||||
app.add_url_rule("/mail/send", view_func=self.send_mail, methods=['POST'])
|
||||
|
||||
def send(self):
|
||||
def send_mail(self):
|
||||
try:
|
||||
with ApiClient(self.config) as api:
|
||||
req = request.get_json()
|
||||
|
||||
@@ -18,9 +18,9 @@ class SmsController:
|
||||
self.is_logged_in = False
|
||||
|
||||
def _register_routes(self, app):
|
||||
app.add_url_rule("/sms/send", view_func=self.send, methods=['POST'])
|
||||
app.add_url_rule("/sms/send", view_func=self.send_sms, methods=['POST'])
|
||||
|
||||
def send(self):
|
||||
def send_sms(self):
|
||||
try:
|
||||
with ApiClient(self.config) as api:
|
||||
req = request.get_json()
|
||||
|
||||
Reference in New Issue
Block a user