summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/controller.py
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_api/controllers/controller.py')
-rw-r--r--indoteknik_api/controllers/controller.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/controller.py b/indoteknik_api/controllers/controller.py
index 0846ccb0..0fcf4814 100644
--- a/indoteknik_api/controllers/controller.py
+++ b/indoteknik_api/controllers/controller.py
@@ -168,7 +168,7 @@ class Controller(http.Controller):
def get_api_token(self, **kw):
return self.response(request.env['ir.config_parameter'].sudo().get_param('rest_api_token') or '')
- @http.route('/api/ip-address', auth='public', methods=['GET'])
+ @http.route('/api/ip-address', auth='public', methods=['GET', 'OPTIONS'])
def get_ip_address(self):
address = request.httprequest.remote_addr
address = address if address != '127.0.0.1' else False