From 1797759f93eba8d9b9c519b543149b7defb44fdf Mon Sep 17 00:00:00 2001 From: Laurent Date: Mon, 5 Jan 2026 22:59:50 +0100 Subject: [PATCH] Fuck flask --- api-customer/src/controllers/mail_controller.py | 4 ++-- api-customer/src/controllers/sms_controller.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api-customer/src/controllers/mail_controller.py b/api-customer/src/controllers/mail_controller.py index cbd3e4f4..f6211ab4 100644 --- a/api-customer/src/controllers/mail_controller.py +++ b/api-customer/src/controllers/mail_controller.py @@ -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() diff --git a/api-customer/src/controllers/sms_controller.py b/api-customer/src/controllers/sms_controller.py index df006028..e96970cf 100644 --- a/api-customer/src/controllers/sms_controller.py +++ b/api-customer/src/controllers/sms_controller.py @@ -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()